From ee73a669d33b06afb2152886464f96835ceb413d Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 6 Jul 2016 14:39:14 -0700 Subject: [PATCH] docs(all): link cleanup - broken and outdated Fixes all broken links except genuine errors (see #1840), have been resolved as of 2016-07-06 (https://github.com/angular/angular/commit/2708ce6a17667a2369c83bcf244c9 366b058d4c9). Fixes #1574 --- .../docs/dart/latest/cookbook/dynamic-form-deprecated.html | 1 + public/docs/dart/latest/guide/animations.jade | 1 + public/docs/dart/latest/guide/component-styles.jade | 2 +- public/docs/dart/latest/guide/forms-deprecated.html | 1 + public/docs/dart/latest/guide/forms.jade | 2 +- public/docs/dart/latest/guide/server-communication.jade | 2 +- public/docs/dart/latest/guide/template-syntax.jade | 4 ++-- public/docs/dart/latest/quickstart.jade | 4 ++-- public/docs/dart/latest/tutorial/toh-pt5.jade | 2 +- public/docs/js/latest/cookbook/dynamic-form-deprecated.html | 1 + public/docs/js/latest/guide/animations.jade | 1 + public/docs/js/latest/guide/forms-deprecated.jade | 2 +- public/docs/js/latest/guide/forms.jade | 4 ++-- public/docs/ts/latest/cookbook/set-document-title.jade | 2 +- public/docs/ts/latest/guide/dependency-injection.jade | 2 +- public/docs/ts/latest/guide/forms-deprecated.jade | 6 +++--- public/docs/ts/latest/guide/forms.jade | 2 +- public/docs/ts/latest/guide/pipes.jade | 6 +++--- public/docs/ts/latest/guide/router-deprecated.jade | 2 +- public/docs/ts/latest/guide/server-communication.jade | 2 +- public/docs/ts/latest/guide/style-guide.jade | 2 +- 21 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 public/docs/dart/latest/cookbook/dynamic-form-deprecated.html create mode 100644 public/docs/dart/latest/guide/animations.jade create mode 100644 public/docs/dart/latest/guide/forms-deprecated.html create mode 100644 public/docs/js/latest/cookbook/dynamic-form-deprecated.html create mode 100644 public/docs/js/latest/guide/animations.jade diff --git a/public/docs/dart/latest/cookbook/dynamic-form-deprecated.html b/public/docs/dart/latest/cookbook/dynamic-form-deprecated.html new file mode 100644 index 0000000000..f8df2a84a6 --- /dev/null +++ b/public/docs/dart/latest/cookbook/dynamic-form-deprecated.html @@ -0,0 +1 @@ +!= partial("../../../_includes/_ts-temp") \ No newline at end of file diff --git a/public/docs/dart/latest/guide/animations.jade b/public/docs/dart/latest/guide/animations.jade new file mode 100644 index 0000000000..f8df2a84a6 --- /dev/null +++ b/public/docs/dart/latest/guide/animations.jade @@ -0,0 +1 @@ +!= partial("../../../_includes/_ts-temp") \ No newline at end of file diff --git a/public/docs/dart/latest/guide/component-styles.jade b/public/docs/dart/latest/guide/component-styles.jade index 71507a7d01..967dc2d8b0 100644 --- a/public/docs/dart/latest/guide/component-styles.jade +++ b/public/docs/dart/latest/guide/component-styles.jade @@ -19,7 +19,7 @@ block css-import-url .alert.is-important :marked URLs are currently not interpreted in this way, see - [issue 8518](href="https://github.com/angular/angular/issues/8518"). + [issue 8518](https://github.com/angular/angular/issues/8518). Until this issue is fixed, absolute package-reference style URLs must be given as is illustrated below. diff --git a/public/docs/dart/latest/guide/forms-deprecated.html b/public/docs/dart/latest/guide/forms-deprecated.html new file mode 100644 index 0000000000..f8df2a84a6 --- /dev/null +++ b/public/docs/dart/latest/guide/forms-deprecated.html @@ -0,0 +1 @@ +!= partial("../../../_includes/_ts-temp") \ No newline at end of file diff --git a/public/docs/dart/latest/guide/forms.jade b/public/docs/dart/latest/guide/forms.jade index e78d9c19eb..19b7d09aa5 100644 --- a/public/docs/dart/latest/guide/forms.jade +++ b/public/docs/dart/latest/guide/forms.jade @@ -517,7 +517,7 @@ 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`](../api/common/NgForm-directive.html) directive* + We didn't add the **[`NgForm`](../api/common/index/NgForm-directive.html) directive* explicitly. Angular added it surreptitiously, wrapping it around the `
` element. The `NgForm` directive supplements the `` element with additional features. diff --git a/public/docs/dart/latest/guide/server-communication.jade b/public/docs/dart/latest/guide/server-communication.jade index 1c3ad3155c..4064b7ec97 100644 --- a/public/docs/dart/latest/guide/server-communication.jade +++ b/public/docs/dart/latest/guide/server-communication.jade @@ -33,7 +33,7 @@ block http-providers block getheroes-and-addhero :marked The hero service `getHeroes()` and `addHero()` asynchronous methods return the - [`Future`](https://api.dartlang.org/stable/1.16.0/dart-async/Future-class.html) + [`Future`](https://api.dartlang.org/stable/dart-async/Future-class.html) values of the current hero list and the newly added hero, respectively. The hero list component methods of the same name specifying the actions to be taken when the asynchronous method calls succeed or fail. diff --git a/public/docs/dart/latest/guide/template-syntax.jade b/public/docs/dart/latest/guide/template-syntax.jade index 8ba4989112..71878e7b94 100644 --- a/public/docs/dart/latest/guide/template-syntax.jade +++ b/public/docs/dart/latest/guide/template-syntax.jade @@ -5,7 +5,7 @@ block includes - var _JavaScript = 'Dart'; - var __chaining_op = ';'; - var __new_op = 'new or const'; - - var mapApiRef = 'https://api.dartlang.org/stable/1.16.0/dart-core/Map-class.html'; + - var mapApiRef = 'https://api.dartlang.org/stable/dart-core/Map-class.html'; - var __objectAsMap = 'Map' block notable-differences @@ -69,7 +69,7 @@ block style-property-name-dart-diff and `setProperty()`. Hence, we recommend only using dash-case for style property names. - [CssSD]: https://api.dartlang.org/stable/1.16.1/dart-html/CssStyleDeclaration-class.html + [CssSD]: https://api.dartlang.org/stable/dart-html/CssStyleDeclaration-class.html block dart-no-truthy-falsey diff --git a/public/docs/dart/latest/quickstart.jade b/public/docs/dart/latest/quickstart.jade index 7352d90826..e2a026d4f7 100644 --- a/public/docs/dart/latest/quickstart.jade +++ b/public/docs/dart/latest/quickstart.jade @@ -17,8 +17,8 @@ block setup-tooling You can also download [Dart plugins for other IDEs and editors][DT]. [WS]: https://confluence.jetbrains.com/display/WI/Getting+started+with+Dart - [DT]: https://www.dartlang.org/tools - [pub]: https://www.dartlang.org/tools/pub + [DT]: https://www.dartlang.org/tools/ + [pub]: https://www.dartlang.org/tools/pub/ block download-source // exclude this section from Dart diff --git a/public/docs/dart/latest/tutorial/toh-pt5.jade b/public/docs/dart/latest/tutorial/toh-pt5.jade index 1c0ab90de8..8d18ac4967 100644 --- a/public/docs/dart/latest/tutorial/toh-pt5.jade +++ b/public/docs/dart/latest/tutorial/toh-pt5.jade @@ -442,7 +442,7 @@ code-example(format=''). :marked Going back too far could take us out of the application. That's acceptable in a demo. We'd guard against it in a real application, - perhaps with the [*routerCanDeactivate* hook](../api/router/CanDeactivate-interface.html). + perhaps with the [*routerCanDeactivate* hook](../api/router/index/CanDeactivate-interface.html). :marked Then we wire this method with an event binding to a *Back* button that we add to the bottom of the component template. +makeExample('toh-5/dart/lib/hero_detail_component.html', 'back-button')(format=".") diff --git a/public/docs/js/latest/cookbook/dynamic-form-deprecated.html b/public/docs/js/latest/cookbook/dynamic-form-deprecated.html new file mode 100644 index 0000000000..f8df2a84a6 --- /dev/null +++ b/public/docs/js/latest/cookbook/dynamic-form-deprecated.html @@ -0,0 +1 @@ +!= partial("../../../_includes/_ts-temp") \ No newline at end of file diff --git a/public/docs/js/latest/guide/animations.jade b/public/docs/js/latest/guide/animations.jade new file mode 100644 index 0000000000..6778b6af28 --- /dev/null +++ b/public/docs/js/latest/guide/animations.jade @@ -0,0 +1 @@ +!= partial("../../../_includes/_ts-temp") diff --git a/public/docs/js/latest/guide/forms-deprecated.jade b/public/docs/js/latest/guide/forms-deprecated.jade index 185b25dee5..e17b9fe46c 100644 --- a/public/docs/js/latest/guide/forms-deprecated.jade +++ b/public/docs/js/latest/guide/forms-deprecated.jade @@ -493,7 +493,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/common/NgForm-directive.html) directive** explicitly. + Why did that work? We didn't add the **[`NgForm`](../api/common/index/NgForm-directive.html) directive** explicitly. Angular added it surreptitiously, wrapping it around the `` element diff --git a/public/docs/js/latest/guide/forms.jade b/public/docs/js/latest/guide/forms.jade index a02c2a53b3..2613b7b6b7 100644 --- a/public/docs/js/latest/guide/forms.jade +++ b/public/docs/js/latest/guide/forms.jade @@ -491,7 +491,7 @@ figure.image-display .l-sub-section :marked Why "ngModel"? - A directive's [exportAs](../api/core/DirectiveMetadata-class.html#!#exportAs) property + A directive's [exportAs](../api/core/index/DirectiveMetadata-class.html#!#exportAs) property tells Angular how to link the reference variable to the directive. We set `name` to `ngModel` because the `ngModel` directive's `exportAs` property happens to be "ngModel". @@ -503,7 +503,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/common/NgForm-directive.html) directive** explicitly. + Why did that work? We didn't add the **[`NgForm`](../api/common/index/NgForm-directive.html) directive** explicitly. Angular added it surreptitiously, wrapping it around the `` element diff --git a/public/docs/ts/latest/cookbook/set-document-title.jade b/public/docs/ts/latest/cookbook/set-document-title.jade index 8218b50b8b..7424b1632c 100644 --- a/public/docs/ts/latest/cookbook/set-document-title.jade +++ b/public/docs/ts/latest/cookbook/set-document-title.jade @@ -34,7 +34,7 @@ code-example(format='') :marked ## Use the *Title* service Fortunately, Angular 2 bridges the gap by providing a `Title` service as part of the *Browser platform*. - The [Title](../api/platform/browser/Title-class.html) service is a simple class that provides an API + The [Title](../api/platform-browser/index/Title-class.html) service is a simple class that provides an API for getting and setting the current HTML document title: * `getTitle() : string` — Gets the title of the current HTML document. diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index 2175d5cf65..759f303791 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -525,7 +525,7 @@ code-example(format="nocode"). that creates a new instance of the - [Provider](../api/core/Provider-class.html) class: + [Provider](../api/core/index/Provider-class.html) class: +makeExample('dependency-injection/ts/app/providers.component.ts','providers-3') diff --git a/public/docs/ts/latest/guide/forms-deprecated.jade b/public/docs/ts/latest/guide/forms-deprecated.jade index ed3699f402..0be1f0bfff 100644 --- a/public/docs/ts/latest/guide/forms-deprecated.jade +++ b/public/docs/ts/latest/guide/forms-deprecated.jade @@ -380,7 +380,7 @@ figure.image-display We'll talk about `NgForm` [later in the chapter](#ngForm). The `ngControl` *attribute* in our template actually maps to the - [NgControlName](../api/common/NgControlName-directive.html) directive. + [NgControlName](../api/common/index/NgControlName-directive.html) directive. There is also a `NgControl` *abstract* directive which is *not the same thing*. We often ignore this technical distinction and refer to `NgControlName` more conveniently (albeit incorrectly) as the *NgControl* directive. @@ -483,7 +483,7 @@ figure.image-display .l-sub-section :marked Why "ngForm"? - A directive's [exportAs](../api/core/DirectiveMetadata-class.html#!#exportAs) property + A directive's [exportAs](../api/core/index/DirectiveMetadata-class.html#!#exportAs) property tells Angular how to link the reference variable to the directive. We set `name` to `ngForm` because the `NgControlName` directive's `exportAs` property happens to be "ngForm". @@ -589,7 +589,7 @@ figure.image-display .l-sub-section :marked ### The NgForm directive - What `NgForm` directive? We didn't add an [NgForm](../api/common/NgForm-directive.html) directive! + What `NgForm` directive? We didn't add an [NgForm](../api/common/index/NgForm-directive.html) directive! Angular did. Angular creates and attaches an `NgForm` directive to the `` tag automatically. diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade index e2321b231c..929a7ad0dd 100644 --- a/public/docs/ts/latest/guide/forms.jade +++ b/public/docs/ts/latest/guide/forms.jade @@ -593,7 +593,7 @@ figure.image-display .l-sub-section :marked ### The NgForm directive - What `NgForm` directive? We didn't add an [NgForm](../api/common/NgForm-directive.html) directive! + What `NgForm` directive? We didn't add an [NgForm](../api/common/index/NgForm-directive.html) directive! Angular did. Angular creates and attaches an `NgForm` directive to the `` tag automatically. diff --git a/public/docs/ts/latest/guide/pipes.jade b/public/docs/ts/latest/guide/pipes.jade index 8d7857e09a..744674ac3c 100644 --- a/public/docs/ts/latest/guide/pipes.jade +++ b/public/docs/ts/latest/guide/pipes.jade @@ -36,7 +36,7 @@ block includes :marked Inside the interpolation expression we flow the component's `birthday` value through the - [pipe operator](./template-syntax.html#pipe) ( | ) to the [Date pipe](../api/common/DatePipe-class.html) + [pipe operator](./template-syntax.html#pipe) ( | ) to the [Date pipe](../api/common/index/DatePipe-class.html) function on the right. All pipes work this way. .l-main-section @@ -95,7 +95,7 @@ figure.image-display .l-sub-section :marked - Learn more about the `DatePipes` format options in the [API Docs](../api/common/DatePipe-class.html). + Learn more about the `DatePipes` format options in the [API Docs](../api/common/index/DatePipe-class.html). :marked ## Chaining pipes @@ -395,7 +395,7 @@ figure.image-display .callout.is-helpful header Debugging with the json pipe :marked - The [JsonPipe](../api/common/JsonPipe-class.html) + The [JsonPipe](../api/common/index/JsonPipe-class.html) provides an easy way to diagnosis a mysteriously failing data binding or inspect an object for future binding. diff --git a/public/docs/ts/latest/guide/router-deprecated.jade b/public/docs/ts/latest/guide/router-deprecated.jade index d55523a082..35c485bb7f 100644 --- a/public/docs/ts/latest/guide/router-deprecated.jade +++ b/public/docs/ts/latest/guide/router-deprecated.jade @@ -1465,7 +1465,7 @@ code-example(format=".", language="bash"). .l-sub-section :marked - Learn about the [APP_BASE_HREF](../api/router/APP_BASE_HREF-let.html) + Learn about the [APP_BASE_HREF](../api/router-deprecated/index/APP_BASE_HREF-let.html) in the API Guide. :marked ### *HashLocationStrategy* diff --git a/public/docs/ts/latest/guide/server-communication.jade b/public/docs/ts/latest/guide/server-communication.jade index ada653e58f..c254ff9377 100644 --- a/public/docs/ts/latest/guide/server-communication.jade +++ b/public/docs/ts/latest/guide/server-communication.jade @@ -392,7 +392,7 @@ code-example(format="." language="javascript"). +ifDocsFor('ts') :marked - [Headers](../api/http/Headers-class.html) are one of the [RequestOptions](../api/http/RequestOptions-class.html). + [Headers](../api/http/index/Headers-class.html) are one of the [RequestOptions](../api/http/index/RequestOptions-class.html). Compose the options object and pass it in as the *third* parameter of the `post` method, as shown above. :marked diff --git a/public/docs/ts/latest/guide/style-guide.jade b/public/docs/ts/latest/guide/style-guide.jade index 753c8d9b6d..c6bbd3eeb0 100644 --- a/public/docs/ts/latest/guide/style-guide.jade +++ b/public/docs/ts/latest/guide/style-guide.jade @@ -63,7 +63,7 @@ a(id='toc') :marked ## Single Responsibility - We apply the [Single Responsibility Principle](https:\/\/en.wikipedia.org/wiki/Single_responsibility_principle) to all Components, Services, and other symbols we create. This helps make our app cleaner, easier to read and maintain, and more testable. + We apply the [Single Responsibility Principle](https://wikipedia.org/wiki/Single_responsibility_principle) to all Components, Services, and other symbols we create. This helps make our app cleaner, easier to read and maintain, and more testable. ### Rule of One #### Style 01-01