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 the need for di in angularjs?
What would you have in a shared module?
What is the function of module?
What are the differences between @component and @directive?
What is angular @ routeparams?
How do components communicate with each other in angular 2?
Why is ngoninit called twice?
What is npm start?
Can we use ngfor in div?
What are angular directives?
What are the key features of angular.js?
What are angularjs modules?