ng-event-bus:基于RxJS的Angular消息总线服务

时间:2024-06-06 02:39:01
【文件属性】:

文件名称:ng-event-bus:基于RxJS的Angular消息总线服务

文件大小:176KB

文件格式:ZIP

更新时间:2024-06-06 02:39:01

angular rxjs message-bus event event-bus

ng-event-bus 角为基于RxJS的消息/事件总线服务的应用程序的启发 。 将其注入您的应用程序模块。 您可以检查 。 安装 npm install --save ng-event-bus 用法 首先,将其导入: import { NgEventBus } from 'ng-event-bus'; 然后,将其作为服务注入(不要忘记提供程序)在Angular应用程序中: import { NgEventBus } from 'ng-event-bus'; @NgModule({ imports:[ ... ], providers: [ ..., NgEventBus, ... ], constructor(private eventBus: NgEventBus) { ...


【文件预览】:
ng-event-bus-master
----tsconfig.spec.json(241B)
----.prettierignore(336B)
----src()
--------lib()
--------test.ts(789B)
--------public-api.ts(81B)
----angular.json(1KB)
----.prettierrc.json(73B)
----.travis.yml(205B)
----tsconfig.json(876B)
----tsconfig.lib.json(207B)
----LICENSE(1KB)
----tslint.json(3KB)
----README.md(6KB)
----ng-package.json(195B)
----dist()
--------bundles()
--------public-api.d.ts(36B)
--------ng-event-bus.metadata.json(311B)
--------lib()
--------ng-event-bus.d.ts(78B)
--------LICENSE(1KB)
--------README.md(6KB)
--------fesm2015()
--------esm2015()
--------package.json(1KB)
----.editorconfig(274B)
----.gitignore(625B)
----karma.conf.js(1KB)
----package-lock.json(526KB)
----package.json(2KB)

网友评论