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 |
Which version you are using js?
What is typings in angular 2?
Explain ngmodule?
What types of pipes are supported in angular 2?
What are the difference between angular 4 & angular 5?
Which css framework is best?
Explain custom filters with an example.
What is injector bubbling?
Why angular 4? What’s new in angular 4?
What are the core components of angular 2?
Explain ng-controller directive angularjs?
What is routeractive?