What is the difference between $scope and scope?



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

Post New Answer

More AngularJS Interview Questions

What is a module in math?

0 Answers  


What is activatedroute?

0 Answers  


What is bootstrap array in angular 2?

0 Answers  


What is the use of currency filter in angularjs?

0 Answers  


Indexof(), if the given value is not in the string / array it will return what?

0 Answers  






What is 'transfer data to and from the ui' in angularjs?

0 Answers  


Can we have any service for ngfor and ngif in angular?

0 Answers  


What is hidden property in angular 2?

0 Answers  


What is interceptor in angularjs?

0 Answers  


How to disable right click event in angularjs?

0 Answers  


What is hashlocationstrategy?

0 Answers  


How to use dependency injection (di) correctly in angular 2?

0 Answers  


Categories