From c43dd5a655b6ee47d75a2151bc9b9606fcf802a5 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Thu, 7 Jul 2016 11:59:08 -0700 Subject: [PATCH] refactor(router): renamed RouterAppModule into RouterModule --- modules/@angular/router/index.ts | 2 +- modules/@angular/router/src/common_router_providers.ts | 2 +- .../router/src/{router_app_module.ts => router_module.ts} | 4 ++-- modules/playground/src/routing/index.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename modules/@angular/router/src/{router_app_module.ts => router_module.ts} (96%) diff --git a/modules/@angular/router/index.ts b/modules/@angular/router/index.ts index f5f234680e..6ad67a89f5 100644 --- a/modules/@angular/router/index.ts +++ b/modules/@angular/router/index.ts @@ -14,7 +14,7 @@ export {RouterLinkActive} from './src/directives/router_link_active'; export {RouterOutlet} from './src/directives/router_outlet'; export {CanActivate, CanDeactivate, Resolve} from './src/interfaces'; export {Event, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router, RoutesRecognized} from './src/router'; -export {ROUTER_DIRECTIVES, RouterAppModule} from './src/router_app_module'; +export {ROUTER_DIRECTIVES, RouterModule} from './src/router_module'; export {RouterOutletMap} from './src/router_outlet_map'; export {provideRouter} from './src/router_providers'; export {ActivatedRoute, ActivatedRouteSnapshot, RouterState, RouterStateSnapshot} from './src/router_state'; diff --git a/modules/@angular/router/src/common_router_providers.ts b/modules/@angular/router/src/common_router_providers.ts index 42128e9242..63bd4b470b 100644 --- a/modules/@angular/router/src/common_router_providers.ts +++ b/modules/@angular/router/src/common_router_providers.ts @@ -80,7 +80,7 @@ export function setupRouterInitializer(injector: Injector) { * bootstrap(AppCmp, [provideRouter(config)]); * ``` * - * @deprecated use RouterAppModule instead + * @deprecated use RouterModule instead */ export function provideRouter(routes: Routes, config: ExtraOptions): any[] { return [ diff --git a/modules/@angular/router/src/router_app_module.ts b/modules/@angular/router/src/router_module.ts similarity index 96% rename from modules/@angular/router/src/router_app_module.ts rename to modules/@angular/router/src/router_module.ts index cd8ebf4b1f..fb44124c23 100644 --- a/modules/@angular/router/src/router_app_module.ts +++ b/modules/@angular/router/src/router_module.ts @@ -32,7 +32,7 @@ export const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, * ### Example * * ``` - * bootstrap(AppCmp, {modules: [RouterAppModule]}); + * bootstrap(AppCmp, {modules: [RouterModule]}); * ``` * * @experimental @@ -55,7 +55,7 @@ export const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, {provide: ROUTER_CONFIGURATION, useValue: {enableTracing: false}} ] }) -export class RouterAppModule { +export class RouterModule { constructor(private injector: Injector) { setTimeout(() => { const appRef = injector.get(ApplicationRef); diff --git a/modules/playground/src/routing/index.ts b/modules/playground/src/routing/index.ts index c9e8682189..be309f7ce5 100644 --- a/modules/playground/src/routing/index.ts +++ b/modules/playground/src/routing/index.ts @@ -9,7 +9,7 @@ import {InboxApp, ROUTER_CONFIG} from './app/inbox-app'; import {bootstrap} from '@angular/platform-browser-dynamic'; import {HashLocationStrategy, LocationStrategy} from '@angular/common'; -import {provideRoutes, RouterAppModule} from '@angular/router'; +import {provideRoutes, RouterModule} from '@angular/router'; export function main() { bootstrap(InboxApp, { @@ -17,6 +17,6 @@ export function main() { provideRoutes(ROUTER_CONFIG), {provide: LocationStrategy, useClass: HashLocationStrategy} ], - modules: [RouterAppModule] + modules: [RouterModule] }); } \ No newline at end of file