You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrutiny/webapp/frontend/src/@treo/treo.module.ts

38 lines
1013 B

import { NgModule, Optional, SkipSelf } from '@angular/core';
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { TreoMediaWatcherModule } from '@treo/services/media-watcher/media-watcher.module';
import { TreoSplashScreenModule } from '@treo/services/splash-screen/splash-screen.module';
@NgModule({
imports : [
TreoMediaWatcherModule,
TreoSplashScreenModule
],
providers: [
{
// Use the 'fill' appearance on form fields by default
provide : MAT_FORM_FIELD_DEFAULT_OPTIONS,
useValue: {
appearance: 'fill'
}
}
]
})
export class TreoModule
{
/**
* Constructor
*
* @param parentModule
*/
constructor(
@Optional() @SkipSelf() parentModule?: TreoModule
)
{
if ( parentModule )
{
throw new Error('TreoModule has already been loaded. Import this module in the AppModule only!');
}
}
}