How to use the ngx-jsonapi.NgxJsonapiModule.forRoot function in ngx-jsonapi

To help you get started, we’ve selected a few ngx-jsonapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reyesoft / ngx-jsonapi / demo / app / app.module.ts View on Github external
loadChildren: './authors/authors.module#AuthorsModule'
    },
    {
        path: 'books',
        loadChildren: './books/books.module#BooksModule'
    }
];

@NgModule({
    providers: [AuthorsService, BooksService, PhotosService],
    imports: [
        BrowserModule,
        HttpClientModule,
        SharedModule,
        RouterModule.forRoot(appRoutes, { useHash: true }),
        NgxJsonapiModule.forRoot({
            url: environment.jsonapi_url
        })
    ],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule {}

ngx-jsonapi

JSON API library for Angular

MIT
Latest version published 6 months ago

Package Health Score

66 / 100
Full package analysis