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
Explain currency filter?
What makes angular.js better?
Differentiate between one-way binding and two-way data binding.
What is data binding in angular 7?
What is digest cycle?
What Are The Security Features Provided By AngularJS?
What is the linking function?
What is ivy renderer in angular 6?
How old is angular?
What is modular view engine architecture?
What does ng stands for in angular?
What is the function of module?
How to redirect to 404 or other path if the path does not exist in angular 2?
What is the purpost of using $http service and ajax request in angualrjs?
What is inject in angular?