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 |
What is the use of ngfor directive in angular?
How to validate password and confirm password in angular 4?
Why we need ngmodel in angular 4?
What is @input and @output in angular?
How to disable a control or element in angularjs?
What are decorators in angular?
Explain ng-bind and ng-bind-html directives.
What is Restangular?
What can I do with react js?
What is slug in angular?
Explain the architecture of angularjs?
What is the best solution to solve requestanimationframe is not defined in angular?