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 |
How to implement a datagrid table with angular 2 and primeng?
What is eventemitter angular2?
What are the difference between @injectable() vs. @Inject() in angular 2?
What is bootstrap in angular?
What is arrow function , write its syntax?
What is a decorator in programming?
How to install angular 4? Explain
How is shadow dom helping angular 2 to perform better?
Explain custom filters with an example.
What is the difference between service and factory?
What is elementref?
Is angularjs a framework?