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
Explain ddo in angularjs?
Why do we need provider aliases?
What are templates in angular?
How will you show/hide buttons and enable/disable buttons conditionally?
What is the scope of a $scope?
What is the purpose of exports in a ngmodule?
How to initiate variable in angularjs?
Can I use two ng class?
What are components in angular7?
What is the difference between structural and attribute directives in angular?
Write all the steps to configure an angular app(ng-app).
What is dependency injection in angular 2?
What is a controller javascript?
Is it possible to have a multiple router-outlet in the same template?
What’s the difference between http and httpclient?