fengxiang
2018-07-06 309d1f9d649daa08bb9b068af014749f6d4a5bce
1
2
3
4
5
6
// https://angular.io/guide/styleguide#style-04-12
export function throwIfAlreadyLoaded(parentModule: any, moduleName: string) {
  if (parentModule) {
    throw new Error(`${moduleName} has already been loaded. Import Core modules in the AppModule only.`);
  }
}