Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { DelonAuthModule, SimpleInterceptor } from '@delon/auth';
import { DelonACLModule } from '@delon/acl';
registerLocaleData(zh);
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
CoreModule,
LayoutModule,
RoutesModule,
SharedModule,
HttpClientModule,
DelonAuthModule.forRoot(),
DelonACLModule.forRoot(),
BrowserAnimationsModule,
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: SimpleInterceptor, multi: true },
{ provide: NZ_NOTIFICATION_CONFIG, useValue: { nzMaxStack: 1 } },
{ provide: NZ_I18N, useValue: zh_CN },
ApiService,
{
provide: API_URL,
useValue: environment.urlPrefix
}
],
bootstrap: [AppComponent]
})
export class AppModule { }