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 *ngfor directive used for?
What are the directive scopes in angularjs?
What is data binding in angular 7?
Explain bootstrapping in angularjs?
How to create a component in angular 2?
What are angular providers?
What is the use of angular 7?
How to create custom directives?
What is component in angularjs 2 ?
Is react easier than angular?
what would you have in a shared module in angular 2?
What is mvc5?