Angular wrapper for Mapreflex client
You should generate the api key on Mapreflex cabinet
npm install @mapreflex/api-client-angular --save
Providing the global configuration is optional and when used you should only provide the configuration in your root module.
import {MapreflexModule, Options} from '@mapreflex/api-client-angular';
const options: Options = {
apiKey: 'MAPRELFEX_API_KEY'
};
@NgModule({
...
imports: [
MapreflexModule.forRoot(options)
]
...
})
import {MapreflexServise} from '@mapreflex/api-client-angular'
@Component()
class appComponent {
constructor(private mapreflexService: MapreflexService) {}
}
Run npm install on repository root
npm install
Run npm install on library folder
cd projects/mapreflex/api-client-angular
npm install
npm run build-lib
npm run link-lib
npm run tester-serve
npm run tester-build
TBD