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 angularjs architecture?
How to implement routing in angularjs?
Global variables in angularjs?
How would you optimize the angular 2 application for better performance?
What are services in javascript?
What is ngaftercontentinit?
What is the use of systems? How is webpack better to use in angular?
What is pipes? Why use pipes?
What are the key features/concepts of Angular.js?
What are module loaders in angular?
What is binding in js?
How to setup and install ionic framework with angular 4?
How to install cookies in angular?
How to create datepicker in angular 4?
What do you understand by linking function?