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

Explain the need for di in angularjs?

0 Answers  


What would you have in a shared module?

0 Answers  


What is the function of module?

0 Answers  


What are the differences between @component and @directive?

0 Answers  


What is angular @ routeparams?

0 Answers  






How do components communicate with each other in angular 2?

0 Answers  


Why is ngoninit called twice?

0 Answers  


What is npm start?

0 Answers  


Can we use ngfor in div?

0 Answers  


What are angular directives?

0 Answers  


What are the key features of angular.js?

0 Answers  


What are angularjs modules?

0 Answers  


Categories