@shieldiot/ngx-pulse-lib
v1.18.323
Published
Angular client library for Pulse API backend
Downloads
675
Readme
NgxPulseLib
TypeScript client library for ShieldIoT pulse API, for Angular applications.
How to use The Library
- Add the package to your package.json file
- In your Angular application, add the module
// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { PulseLibModule } from '@shieldiot/ngx-pulse-lib'; // <-- import the module
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
PulseLibModule.forRoot({ // <-- include it in your app module
api: 'http://localhost:8080/v1' // <-- configure PulseAPI url
})
],
bootstrap: [AppComponent]
})
export class AppModule { }
PulseConfig
api
[string
] configure Pulse API url.