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 |
Give an example of Data binding in AngularJS?
What is an injector?
What do you understand by deep linking?
What is fxflex in angular?
What is the purpose of ngmodule??
Why use pipes in angular?
Explain component decorators in angular 4?
What is code splitting?
In angular 2 module consist of what arrays?
How angular 4 is different from angular 2?
Explain directive scopes in angularjs?
What did you like about working with angular 2?