What is the difference between $scope and scope?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mobile angular ui?

467


Distinguish between angularjs expression & javascript expression?

433


What are the differences angular modules, javascript modules vs. Angular 1 modules?

448


What is The Manual Bootstrap Process in AngularJS?

480


What is the difference between angular js and backbone.js?

421






What is @inject()?

437


Is it possible to have multiple ng-app directives on a single page in angularjs?

419


What is isolated scope in angularjs?

416


What is the meaning of material design?

389


Why would you use renderer methods instead of using native element methods?

485


Where can I learn angularjs?

412


How to create a custom errorhandler?

452


What is observable and promise?

433


What is $https and $log services in angularjs?

440


What is the use of pipe in angular?

389