diff --git a/packages/common/src/location/location.ts b/packages/common/src/location/location.ts index f850fdda4e..0edfa03484 100644 --- a/packages/common/src/location/location.ts +++ b/packages/common/src/location/location.ts @@ -25,7 +25,7 @@ export interface PopStateEvent { * * A service that applications can use to interact with a browser's URL. * - * Depending on the {@link LocationStrategy} used, `Location` will either persist + * Depending on the `LocationStrategy` used, `Location` will either persist * to the URL's path or the URL's hash segment. * * @usageNotes @@ -43,7 +43,8 @@ export interface PopStateEvent { * * ### Example * - * {@example common/location/ts/path_location_component.ts region='LocationComponent'} + * * * @publicApi */ diff --git a/packages/common/src/location/location_strategy.ts b/packages/common/src/location/location_strategy.ts index 2cbf0de24e..7a37ce7af9 100644 --- a/packages/common/src/location/location_strategy.ts +++ b/packages/common/src/location/location_strategy.ts @@ -10,18 +10,17 @@ import {InjectionToken} from '@angular/core'; import {LocationChangeListener} from './platform_location'; /** - * `LocationStrategy` is responsible for representing and reading route state - * from the browser's URL. Angular provides two strategies: - * {@link HashLocationStrategy} and {@link PathLocationStrategy}. + * Enables the `Location` service to read route state from the browser's URL. + * Angular provides two strategies: + * `HashLocationStrategy` and `PathLocationStrategy`. * - * This is used under the hood of the {@link Location} service. - * - * Applications should use the {@link Router} or {@link Location} services to + * Applications should use the `Router` or `Location` services to * interact with application route state. * - * For instance, {@link HashLocationStrategy} produces URLs like - * `http://example.com#/foo`, and {@link PathLocationStrategy} produces - * `http://example.com/foo` as an equivalent URL. + * For instance, `HashLocationStrategy` produces URLs like + * http://example.com#/foo, + * and `PathLocationStrategy` produces + * http://example.com/foo as an equivalent URL. * * See these two classes for more. *