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 |
How we can use styleurls and styles in angular 2?
What is observable type?
What are the advantages of using angular 2?
With options on page load how you can initialize a select box?
How to get and log an error in angular 4?
What is route in angularjs?
How to append base url to http requests in angular?
How did you get the value from input box using jquery?
How do you exchange data among different modules of your angular js application?
What is difference between factory and service?
Explain angular elements?
Is angular faster than angularjs?