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 |
What is the purpose of exports in a ngmodule?
What is a controller?
What is the syntax for creating a new date object?
What is model in angular?
How do you define a module?
How does oauth 2.0 work?
How do you check if I have angular cli installed?
What is the use of arrow function in angular 2?
What is the difference among "declarations", "providers" and "import" in ngmodule?
What is in node js?
What is angular singleton service?
When dependent modules of a module are loaded?