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’s the difference between http and httpclient?
What are the difference between angular 6 and angular 7?
What is token based authentication in angular 4?
Difference between directive and pipe in angular?
What is the difference between $http and $resource?
What is a directive question?
What are AngularJS features?
What are filters? Explain different filters provided by angularjs?
Explain what is angular expression? Explain what is key difference between angular expressions and javascript expressions?
What is 'no control flow statements' in angularjs?
Explain $scope in angular?
What are the attributes which can be used during the creation of a new angularjs directives?