dashboard
repositories
filestore
activity
search
login
main
/
screen_demo2
招投标-河南禹州
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
图例 高度调整
xufenglei
2018-07-20
efa7b6d79650d2f6813071b49f02ccce94c03f86
[screen_demo2.git]
/
src
/
app
/
core
/
module-import-guard.ts
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.`);
}
}