qipp-services-relay

Relay service for Angular application.

Usage no npm install needed!

<script type="module">
  import qippServicesRelay from 'https://cdn.skypack.dev/qipp-services-relay';
</script>

README

qipp-services-relay Build Status npm version

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

Licence

Released under the MIT license by qipp.