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 |
What is dependency injection in angularjs and how does it work?
How angular router works?
Which is better react or angular?
Is node js faster than java?
Is angularjs extensible?
What ide's are currently used for the development of angularjs?
What is angular model?
What are Compile, Pre, and Post linking in AngularJS?
Can you please explain what is testability like in angular?
What is angular?
Explain the architecture of angular 2?
What is digest loop?