From 0e8d7afc087fcd48b9bb2ad14e6108730d4310d6 Mon Sep 17 00:00:00 2001 From: Naomi Black Date: Wed, 16 Mar 2016 20:04:42 -0700 Subject: [PATCH] chore(links): fix broken links in dev guides --- public/docs/dart/latest/guide/forms.jade | 4 ++-- public/docs/js/latest/guide/forms.jade | 2 +- public/docs/js/latest/quickstart.jade | 2 +- public/docs/ts/latest/cookbook/component-communication.jade | 4 ++-- public/docs/ts/latest/guide/router.jade | 6 ++++-- public/docs/ts/latest/quickstart.jade | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/public/docs/dart/latest/guide/forms.jade b/public/docs/dart/latest/guide/forms.jade index fa588e15cf..62ebeddaa6 100644 --- a/public/docs/dart/latest/guide/forms.jade +++ b/public/docs/dart/latest/guide/forms.jade @@ -521,8 +521,8 @@ figure.image-display Recall from the previous section that `ngControl` registered this input box with the `NgForm` directive as "name". - We didn't add the `NgForm` directive explicitly. - Angular added it surreptitiously, wrapping it around the `
` element. + We didn't add the **[`NgForm`](../api/common/NgForm-directive.html) directive* + explicitly. Angular added it surreptitiously, wrapping it around the `` element. The `NgForm` directive supplements the `` element with additional features. It collects controls (elements identified by an `ngControl` directive) diff --git a/public/docs/js/latest/guide/forms.jade b/public/docs/js/latest/guide/forms.jade index 8567d97fee..29fdf76529 100644 --- a/public/docs/js/latest/guide/forms.jade +++ b/public/docs/js/latest/guide/forms.jade @@ -488,7 +488,7 @@ figure.image-display :marked ### The NgForm directive We just set a template local variable with the value of an `NgForm` directive. - Why did that work? We didn't add the **[`NgForm`](../api/core/NgForm-class.html) directive** explicitly. + Why did that work? We didn't add the **[`NgForm`](../api/common/NgForm-directive.html) directive** explicitly. Angular added it surreptiously, wrapping it around the `` element diff --git a/public/docs/js/latest/quickstart.jade b/public/docs/js/latest/quickstart.jade index 685f4c7d8f..c89ac78cd3 100644 --- a/public/docs/js/latest/quickstart.jade +++ b/public/docs/js/latest/quickstart.jade @@ -452,7 +452,7 @@ code-example(format=""). We might load it on a mobile device with [Apache Cordova](https://cordova.apache.org/) or [NativeScript](https://www.nativescript.org/). We might wish to render the first page of our application on the server to improve launch performance or facilitate - [SEO](http://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf). + [SEO](http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf). These targets require a different kind of bootstrap function that we'd import from a different library. diff --git a/public/docs/ts/latest/cookbook/component-communication.jade b/public/docs/ts/latest/cookbook/component-communication.jade index 83103e623d..734a6ac20d 100644 --- a/public/docs/ts/latest/cookbook/component-communication.jade +++ b/public/docs/ts/latest/cookbook/component-communication.jade @@ -38,7 +38,7 @@ include ../_util-fns ## Pass data from parent to child with input binding `HeroChildComponent` has two ***input properties***, - typically adorned with [@Input decorations](/docs/ts/latest/guide/template-syntax.html#inputs-outputs). + typically adorned with [@Input decorations](../guide/template-syntax.html#inputs-outputs). +makeExample('cb-component-communication/ts/app/hero-child.component.ts') :marked @@ -142,7 +142,7 @@ figure.image-display The parent binds to that event property and reacts to those events. The child's `EventEmitter` property is an ***output property***, - typically adorned with an [@Output decoration](/docs/ts/latest/guide/template-syntax.html#inputs-outputs) + typically adorned with an [@Output decoration](../guide/template-syntax.html#inputs-outputs) as seen in this `VoterComponent`: +makeExample('cb-component-communication/ts/app/voter.component.ts') diff --git a/public/docs/ts/latest/guide/router.jade b/public/docs/ts/latest/guide/router.jade index 0b98a9b18c..bc40bba813 100644 --- a/public/docs/ts/latest/guide/router.jade +++ b/public/docs/ts/latest/guide/router.jade @@ -883,7 +883,8 @@ code-example(format=""). ## Router Lifecycle Hooks Angular components have [lifecycle hooks](lifecycle-hooks.html). For example, Angular calls the hook methods of the - [OnInit](../api/core/OnInit-interface.html) and [OnDestroy](../api/core/OnDestroy-interface.html) + [OnInit](../api/core/OnInit-interface.html) and [OnDestroy](../api/common/OnDestroy-interface + .html) interfaces when it creates and destroys components. The router also has hooks for *its* lifecycle such as @@ -1375,7 +1376,8 @@ code-example(format="." language="bash"). Angular detects when a component has certain lifecycle methods like [ngOnInit](https://angular.io/docs/ts/latest/api/core/OnInit-interface.html) and - [ngOnDestroy](https://angular.io/docs/ts/latest/api/core/OnDestroy-interface.html) and calls them + [ngOnDestroy](https://angular.io/docs/ts/latest/api/common/OnDestroy-interface.html) and calls + them at the appropriate moment. Angular will call `ngOnInit` when we navigate to the `HeroDetailComponent`, we'll get the `id` from the `RouteParams` diff --git a/public/docs/ts/latest/quickstart.jade b/public/docs/ts/latest/quickstart.jade index f5cf27c6a0..54277b7a31 100644 --- a/public/docs/ts/latest/quickstart.jade +++ b/public/docs/ts/latest/quickstart.jade @@ -286,7 +286,7 @@ a(id="main") We might load it on a mobile device with [Apache Cordova](https://cordova.apache.org/) or [NativeScript](https://www.nativescript.org/). We might wish to render the first page of our application on the server to improve launch performance or facilitate - [SEO](http://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf). + [SEO](http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf). These targets require a different kind of bootstrap function that we'd import from a different library.