摘要: $emit只能向parent controller传递event与data $broadcast只能向child controller传递event与data $on用于接收event与data 例子如下 html代码 js代码 最终结果 ParentCtrl child ChildCtrl par 阅读全文
posted @ 2016-10-24 23:46 Sea111 阅读(1037) 评论(0) 推荐(1) 编辑
摘要: 显示: ng-model里面的变量 如果为1,会去 阅读全文
posted @ 2016-10-24 16:37 Sea111 阅读(763) 评论(0) 推荐(0) 编辑