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 the urlsegment interface in angular 7?
What are the exit codes in node.js? List some exit codes?
Difference between display:none & visiblity:hidden?
What are services in javascript?
Does google own angular?
What is route guard in angular?
Explain event in angularjs, list some events you have worked in angularjs?
What is router-outlet directive in angular 2?
What is router state in angular 2?
What is The Manual Bootstrap Process in AngularJS?
What is the difference between ng model and ng bind?
What do you mean by module in angular 2?
What is a function decorator?
Which is the best backend technology for angular?
What is modular view engine architecture?