hisptz/ngx-dhis2-http-client

View on GitHub
src/app/app.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { NgxDhis2HttpClientModule } from '@iapps/ngx-dhis2-http-client';

@NgModule({
    declarations: [AppComponent],
    imports: [
        BrowserModule,
        NgxDhis2HttpClientModule.forRoot({
            namespace: 'hisptz',
            version: 1,
            models: {
                users: 'id',
                organisationUnitLevels: 'id',
                organisationUnits: 'id,name,level',
                organisationUnitGroups: 'id',
                dataStore_scorecards: 'id',
            },
        }),
    ],
    providers: [],
    bootstrap: [AppComponent],
})
export class AppModule {}