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
How Directives are compiled?
Where can I learn angularjs?
Explain AngularJS scope life-cycle?
Explain ng-include directive in angularjs?
What are some security-related features built into the angular framework?
When to use factory?
What is the possible order of life-cycle hooks?
What is a router in angular?
What is mean stack development?
What is data in angular?
Explain what is Angular Expression?
Explain how does angularjs implement two-way binding?
What is lazy loading and how to enable lazy loading in angular 2?
What are the cookies methods?
How to do animation with the help of AngularJS?