docs(common): fix content errors (#23667)

PR Close #23667
This commit is contained in:
Pete Bacon Darwin
2018-05-03 09:38:05 +01:00
committed by Kara Erickson
parent eb999300d9
commit 725bae1921
16 changed files with 58 additions and 30 deletions

View File

@ -25,6 +25,8 @@ import {LocationChangeListener, PlatformLocation} from './platform_location';
* For instance, if you call `location.go('/foo')`, the browser's URL will become
* `example.com#/foo`.
*
* @usageNotes
*
* ### Example
*
* {@example common/location/ts/hash_location_component.ts region='LocationComponent'}

View File

@ -27,7 +27,9 @@ export interface PopStateEvent {
* Depending on which {@link LocationStrategy} is used, `Location` will either persist
* to the URL's path or the URL's hash segment.
*
* Note: it's better to use {@link Router#navigate} service to trigger route changes. Use
* @usageNotes
*
* It's better to use {@link Router#navigate} service to trigger route changes. Use
* `Location` only if you need to interact with or create normalized URLs outside of
* routing.
*
@ -39,6 +41,7 @@ export interface PopStateEvent {
* - `/my/app/user/123/` **is not** normalized
*
* ### Example
*
* {@example common/location/ts/path_location_component.ts region='LocationComponent'}
*
*/

View File

@ -47,6 +47,8 @@ export abstract class LocationStrategy {
* representing the URL prefix that should be preserved when generating and recognizing
* URLs.
*
* @usageNotes
*
* ### Example
*
* ```typescript

View File

@ -34,6 +34,8 @@ import {LocationChangeListener, PlatformLocation} from './platform_location';
* `location.go('/foo')`, the browser's URL will become
* `example.com/my/app/foo`.
*
* @usageNotes
*
* ### Example
*
* {@example common/location/ts/path_location_component.ts region='LocationComponent'}