Tag Archive: scope

May 10

Rootscope and Scope in AngularJs

$rootscope is top-level scope. An app has only one $rootscope which will be share data among all the component of app. $rootscope is consider as global for the app. if every one want to define variable as global then he/she can use $rootscope. This method is usefull when have multiple controller in app and want …

Continue reading »