1.0.7 • Published 5 years ago

mm-gah v1.0.7

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 years ago

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.

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago