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 $scope and $rootScope?

Answer Posted / chaitanya

The $rootScope is the top-most scope. An app can have only one $rootScope which will be shared among all the components of an app. Hence it acts like a global variable. All other $scopes are children of the $rootScope.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain event emitters in angular 2 and how it works?

778


What are the directives in angularjs?

749


How to perform animation in angular?

813


What is main ts file?

786


What is the use of bearer token?

766


What is the urlsegment interface in angular 7?

843


How to sanitize a value manually?

925


What is the single page application (spa)?

767


How can someone make an ajax call using angularjs?

862


What string interpolation is in angularjs?

786


How to use the json object in ng-repeat?

819


What would you consider a thing you should be careful doing on onnginit()?

781


What is the use of ngfortrackby directive?

824


What is an impure pipe?

771


What is tsconfig json in angulr 2?

779