mm-gah
v1.0.7
Published
Allows you to use Geotab Api on Angular
Downloads
11
Readme
Métrica Móvil Geotab Angular Helper [mm-gah]
Allows you to use the Geotab Api on Angular 4+ and develop addins.
Install
Install with npm
$ npm i mm-gah --save
Usage
On component: Import class, create reference and call init with the ADDIN_NAME and ENV_PROD parameters. ADDIN_NAME is a string, ENV_PROD is a boolean.
import { GeotabService } from 'mm-gah';
...
export class MyComponent implements OnInit {
myApiRef: any;
geotabService: any;
constructor() {
this.geotabService = new GeotabService();
}
ngOnInit() {
this.geotabService.init('{ADDIN_NAME}', '{ENV_PROD}').then(api => {
this.myApiRef = api;
//this.consultDevices();
});
}
}
Author
Abdel Posada
License
Copyright © 2018 Abdel Posada UNLICENSED.