What is the difference between $scope and scope?
Answer / 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 |
explain templates in angular js
How to install cookies in angular?
What is the meaning of aot?
How to achive in angular ?
What’s the used of @outputs in angular 2?
What is pathmatch in angular?
What are the different types of directive?
What is angularjs architecture?
How will you implement internationalization in angularjs?
List some methods supported by $http service in angularjs?
What do you understand by constants in angular?
What is the difference between factory and service in angular 2?