fengxiang
2018-03-13 6a6d3bbb3748c12c2dc94beec05d21d82d0faba1
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.`);
  }
}