From ae62f082fd8a29b557dc20fa871e0a6300099f27 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 6 Jul 2016 13:57:38 -0700 Subject: [PATCH] docs(api): fix broken example urls (#9828) --- modules/@angular/core/src/metadata.ts | 10 ++++++---- modules/@angular/core/src/metadata/directives.ts | 10 ++++++---- .../@angular/platform-browser/src/dom/debug/by.ts | 6 +++--- modules/@angular/router-deprecated/src/interfaces.ts | 12 +++++++----- .../src/lifecycle/lifecycle_annotations.ts | 2 +- 5 files changed, 23 insertions(+), 17 deletions(-) diff --git a/modules/@angular/core/src/metadata.ts b/modules/@angular/core/src/metadata.ts index e1c0bc3834..bdf52d8405 100644 --- a/modules/@angular/core/src/metadata.ts +++ b/modules/@angular/core/src/metadata.ts @@ -528,8 +528,9 @@ export interface AppModuleMetadataFactory { * * ## Lifecycle hooks * - * When the component class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks - * are called by the change detection at defined points in time during the life of the component. + * When the component class implements some {@link ../../../guide/lifecycle-hooks.html} the + * callbacks are called by the change detection at defined points in time during the life of the + * component. * * ### Example * @@ -859,8 +860,9 @@ export var Component: ComponentMetadataFactory = * * ## Lifecycle hooks * - * When the directive class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks - * are called by the change detection at defined points in time during the life of the directive. + * When the directive class implements some {@link ../../../guide/lifecycle-hooks.html} the + * callbacks are called by the change detection at defined points in time during the life of the + * directive. * * ### Example * diff --git a/modules/@angular/core/src/metadata/directives.ts b/modules/@angular/core/src/metadata/directives.ts index df48963674..cfa4112fea 100644 --- a/modules/@angular/core/src/metadata/directives.ts +++ b/modules/@angular/core/src/metadata/directives.ts @@ -332,8 +332,9 @@ import {ViewEncapsulation} from './view'; * * ## Lifecycle hooks * - * When the directive class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks - * are called by the change detection at defined points in time during the life of the directive. + * When the directive class implements some {@link ../../../guide/lifecycle-hooks.html} the + * callbacks are called by the change detection at defined points in time during the life of the + * directive. * * ### Example * @@ -790,8 +791,9 @@ export class DirectiveMetadata extends InjectableMetadata { * * ## Lifecycle hooks * - * When the component class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks - * are called by the change detection at defined points in time during the life of the component. + * When the component class implements some {@link ../../../guide/lifecycle-hooks.html} the + * callbacks are called by the change detection at defined points in time during the life of the + * component. * * ### Example * diff --git a/modules/@angular/platform-browser/src/dom/debug/by.ts b/modules/@angular/platform-browser/src/dom/debug/by.ts index d0bc19d84a..a43de6b54d 100644 --- a/modules/@angular/platform-browser/src/dom/debug/by.ts +++ b/modules/@angular/platform-browser/src/dom/debug/by.ts @@ -25,7 +25,7 @@ export class By { * * ## Example * - * {@example platform/dom/debug/ts/by/by.ts region='by_all'} + * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'} */ static all(): Predicate { return (debugElement) => true; } @@ -34,7 +34,7 @@ export class By { * * ## Example * - * {@example platform/dom/debug/ts/by/by.ts region='by_css'} + * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'} */ static css(selector: string): Predicate { return (debugElement) => { @@ -49,7 +49,7 @@ export class By { * * ## Example * - * {@example platform/dom/debug/ts/by/by.ts region='by_directive'} + * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'} */ static directive(type: Type): Predicate { return (debugElement) => { return debugElement.providerTokens.indexOf(type) !== -1; }; diff --git a/modules/@angular/router-deprecated/src/interfaces.ts b/modules/@angular/router-deprecated/src/interfaces.ts index 9b73b5c491..d19928129e 100644 --- a/modules/@angular/router-deprecated/src/interfaces.ts +++ b/modules/@angular/router-deprecated/src/interfaces.ts @@ -33,7 +33,7 @@ var __make_dart_analyzer_happy: Promise = null; * instantiate and activate child components. * * ### Example - * {@example router/ts/on_activate/on_activate_example.ts region='routerOnActivate'} + * {@example router_deprecated/ts/on_activate/on_activate_example.ts region='routerOnActivate'} */ export interface OnActivate { routerOnActivate(nextInstruction: ComponentInstruction, prevInstruction: ComponentInstruction): @@ -53,7 +53,7 @@ export interface OnActivate { * previous route or `null`. * * ### Example - * {@example router/ts/reuse/reuse_example.ts region='reuseCmp'} + * {@example router_deprecated/ts/reuse/reuse_example.ts region='reuseCmp'} */ export interface OnReuse { routerOnReuse(nextInstruction: ComponentInstruction, prevInstruction: ComponentInstruction): any @@ -73,7 +73,8 @@ export interface OnReuse { * If `routerOnDeactivate` returns a promise, the route change will wait until the promise settles. * * ### Example - * {@example router/ts/on_deactivate/on_deactivate_example.ts region='routerOnDeactivate'} + * {@example router_deprecated/ts/on_deactivate/on_deactivate_example.ts + * region='routerOnDeactivate'} */ export interface OnDeactivate { routerOnDeactivate(nextInstruction: ComponentInstruction, prevInstruction: ComponentInstruction): @@ -98,7 +99,7 @@ export interface OnDeactivate { * If `routerCanReuse` throws or rejects, the navigation will be cancelled. * * ### Example - * {@example router/ts/reuse/reuse_example.ts region='reuseCmp'} + * {@example router_deprecated/ts/reuse/reuse_example.ts region='reuseCmp'} */ export interface CanReuse { routerCanReuse(nextInstruction: ComponentInstruction, prevInstruction: ComponentInstruction): @@ -122,7 +123,8 @@ export interface CanReuse { * If `routerCanDeactivate` throws or rejects, the navigation is also cancelled. * * ### Example - * {@example router/ts/can_deactivate/can_deactivate_example.ts region='routerCanDeactivate'} + * {@example router_deprecated/ts/can_deactivate/can_deactivate_example.ts + * region='routerCanDeactivate'} */ export interface CanDeactivate { routerCanDeactivate(nextInstruction: ComponentInstruction, prevInstruction: ComponentInstruction): diff --git a/modules/@angular/router-deprecated/src/lifecycle/lifecycle_annotations.ts b/modules/@angular/router-deprecated/src/lifecycle/lifecycle_annotations.ts index b42b1c7e26..45858c5248 100644 --- a/modules/@angular/router-deprecated/src/lifecycle/lifecycle_annotations.ts +++ b/modules/@angular/router-deprecated/src/lifecycle/lifecycle_annotations.ts @@ -43,7 +43,7 @@ export {routerCanDeactivate, routerCanReuse, routerOnActivate, routerOnDeactivat * * ### Example * - * {@example router/ts/can_activate/can_activate_example.ts region='canActivate' } + * {@example router_deprecated/ts/can_activate/can_activate_example.ts region='canActivate' } * @Annotation */ export var CanActivate: