Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ReactiveFormsModule,
HttpClientModule,
RealtimeDatabaseModule.config({
serverBaseUrl: `${location.hostname}:${location.port}`,
loginRedirect: 'account/login',
unauthorizedRedirect: 'account/unauthorized'
// secret: 'test123'
}),
AppRoutingModule,
Angular2PromiseButtonModule.forRoot()
],
bootstrap: [AppComponent]
})
export class AppModule {}
FormlyModule.forChild({
types: [{
name: 'duration',
component: InputDurationFormlyComponent,
extends: 'input',
wrappers: ['form-field'],
}, {
name: 'tpl',
component: FormlyTranslatedTemplateComponent,
}],
extras: {
immutable: true
},
}),
FormlyMaterialModule,
Angular2PromiseButtonModule.forRoot({
// handleCurrentBtnOnly: true,
}),
DragulaModule.forRoot(),
// my modules
ValidationModule,
BetterDrawerModule,
],
declarations: [
...COMPONENT_AND_PIPES,
],
entryComponents: [
...DIALOG_COMPONENTS
],
exports: [
...COMPONENT_AND_PIPES,