What is the difference between $scope and scope?
Answer / ankush
- The $ in "$scope" indicates that the scope value is being injected into the current context. $scope is a service provided by $scopeProvider. You can inject it into controllers, directives or other services using Angular's built-in dependency injector:
- scope could be anything, it's a function parameter name
function link( scope, element, attributes ) {
// Only scope
}
Is This Answer Correct ? | 0 Yes | 0 No |
What is a module in math?
What is activatedroute?
What is bootstrap array in angular 2?
What is the use of currency filter in angularjs?
Indexof(), if the given value is not in the string / array it will return what?
What is 'transfer data to and from the ui' in angularjs?
Can we have any service for ngfor and ngif in angular?
What is hidden property in angular 2?
What is interceptor in angularjs?
How to disable right click event in angularjs?
What is hashlocationstrategy?
How to use dependency injection (di) correctly in angular 2?