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 change detection strategy in angular?
What is isolate scope in angularjs?
What is lazy loading and how to enable lazy loading?
When do you use template-driven vs model-driven forms? Why?
How does angular application improve performance?
How to implement caching in angular 1.x?
How do you use singleton pattern?
What do you understand by linking function? Explain its type.
What are $scope in angular js?
How to use primeng in angular 4?
How to create a block component dynamically on click of drop down?
What is looping in angularjs?