From 82539b69cb46de95ec9a3591306a194d50f999a3 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Fri, 26 Aug 2016 13:00:23 -0700 Subject: [PATCH] chore: replace BaseException with new Error (#2205) because BaseException removed from A2 public api --- .../_examples/ngmodule/ts/app/core/core.module.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/docs/_examples/ngmodule/ts/app/core/core.module.ts b/public/docs/_examples/ngmodule/ts/app/core/core.module.ts index 1a92416012..27cb9a2193 100644 --- a/public/docs/_examples/ngmodule/ts/app/core/core.module.ts +++ b/public/docs/_examples/ngmodule/ts/app/core/core.module.ts @@ -3,15 +3,15 @@ // #docregion // #docregion v4 import { - BaseException, ModuleWithProviders, - NgModule, Optional, SkipSelf } from '@angular/core'; + ModuleWithProviders, NgModule, + Optional, SkipSelf } from '@angular/core'; -import { CommonModule } from '@angular/common'; +import { CommonModule } from '@angular/common'; -import { TitleComponent } from './title.component'; -import { UserService } from './user.service'; +import { TitleComponent } from './title.component'; +import { UserService } from './user.service'; // #enddocregion -import { UserServiceConfig } from './user.service'; +import { UserServiceConfig } from './user.service'; // #docregion v4 @NgModule({ @@ -26,7 +26,7 @@ export class CoreModule { // #docregion ctor constructor (@Optional() @SkipSelf() parentModule: CoreModule) { if (parentModule) { - throw new BaseException( + throw new Error( 'CoreModule is already loaded. Import it in the AppModule only'); } }