From 014883d074d6041593980683683c1d16e418e3a4 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 24 Aug 2016 14:46:06 -0700 Subject: [PATCH] docs(*): fix links to Dart API entries (#2185) * docs(*): fix links to Dart API entries * post-review updates --- .../docs/dart/latest/guide/dependency-injection.jade | 6 ++++++ public/docs/dart/latest/guide/forms.jade | 2 +- public/docs/ts/_cache/guide/dependency-injection.jade | 11 +++-------- public/docs/ts/_cache/guide/template-syntax.jade | 2 -- public/docs/ts/latest/guide/dependency-injection.jade | 11 +++-------- public/docs/ts/latest/guide/template-syntax.jade | 2 -- 6 files changed, 13 insertions(+), 21 deletions(-) diff --git a/public/docs/dart/latest/guide/dependency-injection.jade b/public/docs/dart/latest/guide/dependency-injection.jade index 3e4c5011e3..6656739107 100644 --- a/public/docs/dart/latest/guide/dependency-injection.jade +++ b/public/docs/dart/latest/guide/dependency-injection.jade @@ -34,6 +34,12 @@ block real-logger A real implementation would probably use the [logging package](https://pub.dartlang.org/packages/logging). +block provider-shorthand + :marked + This is actually a shorthand expression for a provider registration + that creates a new instance of the + [Provider](../api/angular2.core/Provider-class.html) class: + block provider-ctor-args - var _secondParam = 'named parameter, such as useClass' :marked diff --git a/public/docs/dart/latest/guide/forms.jade b/public/docs/dart/latest/guide/forms.jade index 73651c1092..863ee5e9bd 100644 --- a/public/docs/dart/latest/guide/forms.jade +++ b/public/docs/dart/latest/guide/forms.jade @@ -518,7 +518,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/index/NgForm-directive.html) directive* + We didn't add the [NgForm](../api/angular2.common/NgForm-class.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/ts/_cache/guide/dependency-injection.jade b/public/docs/ts/_cache/guide/dependency-injection.jade index 2ad5b7a7ed..7242a7055a 100644 --- a/public/docs/ts/_cache/guide/dependency-injection.jade +++ b/public/docs/ts/_cache/guide/dependency-injection.jade @@ -527,15 +527,10 @@ code-example(format="nocode"). +makeExample('dependency-injection/ts/app/providers.component.ts','providers-1') -:marked - This is actually a short-hand expression for a provider registration - +block provider-shorthand + :marked + This is actually a shorthand expression for a provider registration using a _provider_ object literal with two properties: - - - that creates a new instance of the - [Provider](../api/core/index/Provider-class.html) class: - +makeExample('dependency-injection/ts/app/providers.component.ts','providers-3') diff --git a/public/docs/ts/_cache/guide/template-syntax.jade b/public/docs/ts/_cache/guide/template-syntax.jade index 6cebce7b81..165db573c3 100644 --- a/public/docs/ts/_cache/guide/template-syntax.jade +++ b/public/docs/ts/_cache/guide/template-syntax.jade @@ -492,8 +492,6 @@ table [viewChild](../api/core/index/ViewChild-var.html) and [contentChild](../api/core/index/ContentChild-var.html). -// TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../ - :marked ### Binding target An element property between enclosing square brackets identifies the target property. The target property in the following code is the image element’s `src` property. diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index 8755cbec03..43d758dfbd 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -527,15 +527,10 @@ code-example(format="nocode"). +makeExample('dependency-injection/ts/app/providers.component.ts','providers-1') -:marked - This is actually a short-hand expression for a provider registration - +block provider-shorthand + :marked + This is actually a shorthand expression for a provider registration using a _provider_ object literal with two properties: - - - that creates a new instance of the - [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/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 6cebce7b81..165db573c3 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -492,8 +492,6 @@ table [viewChild](../api/core/index/ViewChild-var.html) and [contentChild](../api/core/index/ContentChild-var.html). -// TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../ - :marked ### Binding target An element property between enclosing square brackets identifies the target property. The target property in the following code is the image element’s `src` property.