Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to access the angular $scope variable in browsers console?

824


How does lazy load work?

747


What is cli in angular 2?

740


What does the ng stand for in angular?

684


Difference between constructor and ngoninit?

789


What is fxflex in angular?

784


Explain how e2e testing of angularjs applications works?

713


What is issue with two-way data binding?

1426


How to apply validation in AngularJS?

1310


How to display the values in tables in AngularJS?

722


How to update angular 4,5, 6 to angular 7?

751


Why is ngoninit called twice?

1031


What is @inject()?

753


Differentiate between angular and angularjs.

713


What is the aot compilation?

748