mm-gah

1.0.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i mm-gah

Weekly Downloads

0

Version

1.0.7

License

UNLICENSED

Unpacked Size

27.7 kB

Total Files

8

Last publish

Collaborators

  • abdelpc