This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
public/docs/_examples/ngmodule/ts/app/core Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
// #docregion
4
4
// #docregion v4
5
5
import {
6
- BaseException , ModuleWithProviders ,
7
- NgModule , Optional , SkipSelf } from '@angular/core' ;
6
+ ModuleWithProviders , NgModule ,
7
+ Optional , SkipSelf } from '@angular/core' ;
8
8
9
- import { CommonModule } from '@angular/common' ;
9
+ import { CommonModule } from '@angular/common' ;
10
10
11
- import { TitleComponent } from './title.component' ;
12
- import { UserService } from './user.service' ;
11
+ import { TitleComponent } from './title.component' ;
12
+ import { UserService } from './user.service' ;
13
13
// #enddocregion
14
- import { UserServiceConfig } from './user.service' ;
14
+ import { UserServiceConfig } from './user.service' ;
15
15
16
16
// #docregion v4
17
17
@NgModule ( {
@@ -26,7 +26,7 @@ export class CoreModule {
26
26
// #docregion ctor
27
27
constructor ( @Optional ( ) @SkipSelf ( ) parentModule : CoreModule ) {
28
28
if ( parentModule ) {
29
- throw new BaseException (
29
+ throw new Error (
30
30
'CoreModule is already loaded. Import it in the AppModule only' ) ;
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments