ng-event-scope:添加对级联角度事件的支持

时间:2021-06-26 23:50:19
【文件属性】:
文件名称:ng-event-scope:添加对级联角度事件的支持
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-26 23:50:19
JavaScript ng事件范围 Angular 中的骨干风格事件。 这扩展了 $rootScopeProvider 以创建一个 $scope 隔离,使用 $emit 和 $broadcast 方法装饰以在:冒号上拆分事件。 可以在找到实现的变化。 一个真正应该作为测试的使用示例 ngModule . run ( function ( $rootScope ) { var $scope = $rootScope . $new ( ) ; $scope . $on ( "a:b:c" , function ( ) { console . log ( arguments [ 1 ] , "\t==\t" , "$scope.$on(a:b:c)" ) ; } ) ; $scope . $on ( "a:b*" , function ( ) {
【文件预览】:
ng-event-scope-master
----.gitignore(587B)
----package.json(696B)
----src()
--------event-decorator.js(1KB)
--------$eventScopeProvider.js(591B)
--------$rootScopeDecorator.js(608B)
----LICENSE(1KB)
----index.js(540B)
----README.md(2KB)

网友评论