diff --git a/modules/angular2/src/router/hash_location_strategy.ts b/modules/angular2/src/router/hash_location_strategy.ts index 5c25a1b9aa..d94e5c81dc 100644 --- a/modules/angular2/src/router/hash_location_strategy.ts +++ b/modules/angular2/src/router/hash_location_strategy.ts @@ -9,9 +9,6 @@ import {EventListener, History, Location} from 'angular2/src/core/facade/browser * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) * of the browser's URL. * - * `HashLocationStrategy` is the default binding for {@link LocationStrategy} - * provided in {@link routerBindings} and {@link ROUTER_BINDINGS}. - * * For instance, if you call `location.go('/foo')`, the browser's URL will become * `example.com#/foo`. * @@ -38,7 +35,7 @@ import {EventListener, History, Location} from 'angular2/src/core/facade/browser * } * * bootstrap(AppCmp, [ - * routerBindings(AppCmp) // includes binding to HashLocationStrategy + * routerBindings(AppCmp) * ]); * ``` */ diff --git a/modules/angular2/src/router/path_location_strategy.ts b/modules/angular2/src/router/path_location_strategy.ts index 7d634d33b1..f57a8ed5c6 100644 --- a/modules/angular2/src/router/path_location_strategy.ts +++ b/modules/angular2/src/router/path_location_strategy.ts @@ -9,6 +9,9 @@ import {LocationStrategy} from './location_strategy'; * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the * browser's URL. * + * `PathLocationStrategy` is the default binding for {@link LocationStrategy} + * provided in {@link routerBindings} and {@link ROUTER_BINDINGS}. + * * If you're using `PathLocationStrategy`, you must provide a binding for * {@link APP_BASE_HREF} to a string representing the URL prefix that should * be preserved when generating and recognizing URLs. @@ -26,9 +29,7 @@ import {LocationStrategy} from './location_strategy'; * ROUTER_DIRECTIVES, * routerBindings, * RouteConfig, - * Location, - * LocationStrategy, - * PathLocationStrategy + * Location * } from 'angular2/router'; * * @Component({...}) @@ -43,8 +44,7 @@ import {LocationStrategy} from './location_strategy'; * } * * bootstrap(AppCmp, [ - * routerBindings(AppCmp), - * bind(LocationStrategy).toClass(PathLocationStrategy), + * routerBindings(AppCmp), // includes binding to PathLocationStrategy * bind(APP_BASE_HREF).toValue('/my/app') * ]); * ```