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 |
Can we use ngfor in div?
Is it a good or bad practice to use angular js together with jquery?
How to set http request header in angular 4?
How to create custom pipes in angular 2?
What is AOT Compilation?
What is the difference between [ngfor] and [ngforof]?
How do I get data from web api in angularjs 7?
What are types in typescript?
What is httpinterceptor?
What is xmb placeholders?
What is the second argument in watch?
How performance improvements on the core in angular 8?