Decoupled Angular message bus.
npm install @bakesaled/mesh-jackmesh-jack provides a way to communicate between components without having to inject lots of services.
To use mesh-jack in your project, install it via yarn:
```
yarn add @bakesaled/mesh-jack`
or via npm:`
npm i @bakesaled/mesh-jack
#### Subscribe
`
constructor(private bus: BusService) {}
ngOnInit() {
this.bus.channel('channel A').subscribe(message => {
console.log('message received', message.data);
});
}
`
#### Publish
`
constructor(private busService: BusService) {}
doPublish() {
this.busService.publish('channel A', { source: this, data: 'my message' });
}
``