I need to kick off an angular event in a child browser window from a parent. My first thought was if I had the module name I should be able to get a reference to the $root
$root
If you have an id on your ng-app
ng-app
You can get the $rootScope by: angular.element('#app-container').scope() 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You can get the $rootScope by:
$rootScope
angular.element('#app-container').scope()