qipp-services-relay
v1.0.0
Published
Relay service for Angular application.
Downloads
11
Readme
qipp-services-relay
General
The aim of this relay service is to provide a way to interact with one or more services that are tightly coupled with the originate one in order to avoid circular dependencies i.e. use it as a man-in-the-middle service.
Install
npm i qipp-services-relay
Angular usage
The exec() method accepts one or more arguments. Each argument must be an array and the function must always have a service argument:
relay.exec([
'awesomeProvider',
function (service) {
service.method()
}
], [
'anotherAwesomeProvider',
function (service) {
service.method()
}
])
Tools
Linting with StandardJS
Please refer to the JavaScript Standard Style for general rules.
npm run lint
Unit testing with Karma
npm test
Requirements
Angular
- angular 1.4.3
Licence
Released under the MIT license by qipp.