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 mobile angular ui?
Distinguish between angularjs expression & javascript expression?
What are the differences angular modules, javascript modules vs. Angular 1 modules?
What is The Manual Bootstrap Process in AngularJS?
What is the difference between angular js and backbone.js?
What is @inject()?
Is it possible to have multiple ng-app directives on a single page in angularjs?
What is isolated scope in angularjs?
What is the meaning of material design?
Why would you use renderer methods instead of using native element methods?
Where can I learn angularjs?
How to create a custom errorhandler?
What is observable and promise?
What is $https and $log services in angularjs?
What is the use of pipe in angular?