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 are differences between components and directives?
Define data binding.
How to send an http post request in angularjs?
What is angular frontend?
Is react better than angular?
What is routerlink?
What is the use of angular 7?
What about auto bootstrap process in angular js?
Explain what directives are? Mention some of the most commonly used directives in angularjs application?
What is a template in angular7?
What is bazel in angular 8?
What is pipetransform interface?