What is the difference between $scope and scope?
Answer Posted / 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 |
Post New Answer View All Answers
What is decorator in angular?
Explain ng-model directive angularjs?
What are the security threats should we be aware of in angular 2 application?
How to starting angular 4 apps using ionic 3 cli commands?
How to generating new pipes, tabs, components and pages using ionic 3 cli in angular 4?
What is "track by" in angularjs and how does it work?
What is ng full form?
What is the difference between annotation and decorator in angular 2?
What is aot in angular?
Why do we use factory in angularjs?
Why use node.js?
What is routing concept in angularjs?
Is angular 2 object oriented?
How to use styleurls and styles in angular?
How to append base url to http requests in angular?