Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 82539b6

Browse files
authored
chore: replace BaseException with new Error (#2205)
because BaseException removed from A2 public api
1 parent 094f63a commit 82539b6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

public/docs/_examples/ngmodule/ts/app/core/core.module.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
// #docregion
44
// #docregion v4
55
import {
6-
BaseException, ModuleWithProviders,
7-
NgModule, Optional, SkipSelf } from '@angular/core';
6+
ModuleWithProviders, NgModule,
7+
Optional, SkipSelf } from '@angular/core';
88

9-
import { CommonModule } from '@angular/common';
9+
import { CommonModule } from '@angular/common';
1010

11-
import { TitleComponent } from './title.component';
12-
import { UserService } from './user.service';
11+
import { TitleComponent } from './title.component';
12+
import { UserService } from './user.service';
1313
// #enddocregion
14-
import { UserServiceConfig } from './user.service';
14+
import { UserServiceConfig } from './user.service';
1515

1616
// #docregion v4
1717
@NgModule({
@@ -26,7 +26,7 @@ export class CoreModule {
2626
// #docregion ctor
2727
constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
2828
if (parentModule) {
29-
throw new BaseException(
29+
throw new Error(
3030
'CoreModule is already loaded. Import it in the AppModule only');
3131
}
3232
}

0 commit comments

Comments
 (0)