dashboard
repositories
filestore
activity
search
login
main
/
screen_demo
工业级招标演示
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
Revert "提交"
fengxiang
2018-07-11
a3a8c23b196980732a795713a5eb5fe0c7075bf9
[screen_demo.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.`);
}
}