Scope Inheritance, Scope & Controllers, Root scope,--angularjs $rootScopeEX with diff controllers

Опубликовано: 06 Март 2022
на канале: Java Entertainment All
138
1

$rootscope
An angular application contains a single $rootscope. All other $scope present in an angular application are the child objects. The $rootscope object is the parent of all other $scope objects.
The behavior attached to $rootscope is available to all the controllers present in that particular angular application. It means the properties and methods attached to it can be accessed by all controllers.
NOTE- The difference between $scope object and $rootscope object is that behavior attached with $rootscope is available for all the controllers while behavior attached with $scope is attached with a specific controller in which it is defined.


Смотрите видео Scope Inheritance, Scope & Controllers, Root scope,--angularjs $rootScopeEX with diff controllers онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Java Entertainment All 06 Март 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 138 раз и оно понравилось 1 людям.