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 write increment counter in angular js?

897


Compare Httpmodule vs httpclientmodule?

808


What is dependency injection (di)? Why use?

764


What are angular observables?

708


Which version you are using js?

836


What is data binding in angular?

810


Is angular asynchronous?

758


What are the life cycle hooks order in angularjs?

708


What methods $resource service object support?

1599


What is art compilation?

770


What is router and its types?

784


What is buffer (window storage)?

731


What is isolated scope in angularjs?

738


What is a class in angular?

705


What is a template angular?

720