What is difference between $window and window in AngularJS?
Answer / chaitanya
$window is an Angular service which reference to the browser's window object. The window object is globally available in JavaScript; it causes testability problems, because it is a global variable. Angular refer to it through the $window service, so that it can be overridden, removed or mocked for testing.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain factory method in angularjs?
How many types of data bindings are there in angularjs?
What is transclusion in angular?
What are the security threats should we be aware of in angular 2?
What is the use of interceptors in angular 4?
Which Angular Directive Would You Use To Hide An Element From The DOM Without Modifying Its Style?
What are some differences between angular 2 and 4?
What is router imports?
What is a provider in angularjs?
How will you initialize a select box with options on page load?
Explain formgroup and formcontrol in angular?
What are ng-repeat special variables?