摘要:Angularjs在scope中为我们提供了冒泡和隧道机制, $broadcast会把事件广播给所有子controller, 而$emit则会将事件冒泡传递给父controller view:<div ng-app="app" ng-controller="parentCtr"> <div ng-c
阅读全文
posted @ 2016-04-27 18:43
一念清静,烈焰成池
posted @ 2016-04-27 18:43
posted @ 2016-04-18 16:48
posted @ 2016-04-15 17:17