e1acf6e9d6
Updates Angular to version 9.1 Updates most-to-all npm components Removes deprecated components and npm commands Updates travis node version Adjust the whole code base to angular 9 standard Increase TypeScipt version to 3.8
29 lines
840 B
TypeScript
29 lines
840 B
TypeScript
import { CommonModule } from '@angular/common';
|
|
import { NgModule, Optional, SkipSelf, Type } from '@angular/core';
|
|
import { Title } from '@angular/platform-browser';
|
|
|
|
import { OnAfterAppsLoaded } from './definitions/on-after-apps-loaded';
|
|
import { OperatorService } from './core-services/operator.service';
|
|
|
|
export const ServicesToLoadOnAppsLoaded: Type<OnAfterAppsLoaded>[] = [OperatorService];
|
|
|
|
/**
|
|
* Global Core Module.
|
|
*/
|
|
@NgModule({
|
|
imports: [CommonModule],
|
|
providers: [Title]
|
|
})
|
|
export class CoreModule {
|
|
/** make sure CoreModule is imported only by one NgModule, the AppModule */
|
|
public constructor(
|
|
@Optional()
|
|
@SkipSelf()
|
|
parentModule: CoreModule
|
|
) {
|
|
if (parentModule) {
|
|
throw new Error('CoreModule is already loaded. Import only in AppModule');
|
|
}
|
|
}
|
|
}
|