What is difference between $window and window in AngularJS?
Answer Posted / 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 |
Post New Answer View All Answers
What is an angular 2 component?
What is angular 4?
What are the differences between service and factory methods?
how to include an external css in angular 4?
What is angular 5?
What is angular and why angular?
What does $event mean in angular?
What is the module in angularjs?
How to generate a class in angular 7 using cli ?
What is ng template in angular?
Explain about angularjs service?
Explain api and how do we exchange the data from client side to server?
What do you understand by deep linking?
Which directive is used to hide elements from the html dom by removing them from that dom and not changing their styling?
What is the difference between ngoninit and ngafterviewinit?