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 digest loop?
What are events in angularjs?
How to validate data in angular js?
What is deep linking in angular 4?
What is chaining pipe?
What is forms in angular?
How are angularjs prefixes $ and $$ used?
What is shadow dom?
Is angular js in demand?
What is the difference between ngoninit and ngafterviewinit?
Why angularjs?
Do you know what is angulars performance like?
What is angularjs dom?
What does spa (single page application) mean? How can we implement spa with angular?
Does angular use ajax?