permissions-lib v0.0.9
PermissionsLibraryApp
This project was generated with Angular CLI version 7.2.1.
Installation
npm i permissions-lib
Usage
<aax-permissions-lib [application]="'rplm'"
[environment]="'https://license.app/api/'"
(networkAccess)="accessingNetwork($event)">
</aax-permissions-lib>
application
is automatically appended to API calls so the correct areas are drawn from
license server.
environment
specifies which url to use for API, e.g. https://license-api.app/api/
to access your locally hosted License API. **NOTE**: the url you provide must have a trailing
slash (as per example)
networkAccess
this is an output the emits an event of type boolean
that indicates
when the library is accessing the network, i.e. background activity is happening/stopped
Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you
change any of the source files.
Build
Run ng build permissions-lib
to build the project. The build artifacts will be stored in the dist/
directory.
Running unit tests
Run jest
to execute the unit tests