This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +13
-21
lines changed Expand file tree Collapse file tree 6 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ block real-logger
34
34
A real implementation would probably use the
35
35
[logging package](https://pub.dartlang.org/packages/logging).
36
36
37
+ block provider-shorthand
38
+ :marked
39
+ This is actually a shorthand expression for a provider registration
40
+ that creates a new instance of the
41
+ [Provider](../api/angular2.core/Provider-class.html) class:
42
+
37
43
block provider-ctor-args
38
44
- var _secondParam = ' named parameter, such as <code>useClass</code>'
39
45
:marked
Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ figure.image-display
518
518
Recall from the previous section that `ngControl` registered this input box with the
519
519
`NgForm` directive as "name".
520
520
521
- We didn't add the **[` NgForm` ](../api/common/index/ NgForm-directive .html) directive*
521
+ We didn't add the [ NgForm](../api/angular2. common/NgForm-class .html) directive
522
522
explicitly. Angular added it surreptitiously, wrapping it around the `<form>` element.
523
523
524
524
The `NgForm` directive supplements the `<form>` element with additional features.
Original file line number Diff line number Diff line change @@ -527,15 +527,10 @@ code-example(format="nocode").
527
527
528
528
+ makeExample('dependency-injection/ts/app/providers.component.ts' ,'providers-1' )
529
529
530
- : marked
531
- This is actually a short-hand expression for a provider registration
532
- <span if-docs="ts">
530
+ block provider-shorthand
531
+ : marked
532
+ This is actually a shorthand expression for a provider registration
533
533
using a _provider_ object literal with two properties:
534
- </span>
535
- <span if-docs="dart">
536
- that creates a new instance of the
537
- [Provider](../api/core/index/Provider-class.html) class:
538
- </span>
539
534
540
535
+ makeExample('dependency-injection/ts/app/providers.component.ts' ,'providers-3' )
541
536
Original file line number Diff line number Diff line change @@ -492,8 +492,6 @@ table
492
492
[viewChild](../api/core/index/ViewChild-var.html) and
493
493
[contentChild](../api/core/index/ContentChild-var.html).
494
494
495
- // TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../
496
-
497
495
:marked
498
496
### Binding target
499
497
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.
Original file line number Diff line number Diff line change @@ -527,15 +527,10 @@ code-example(format="nocode").
527
527
528
528
+ makeExample('dependency-injection/ts/app/providers.component.ts' ,'providers-1' )
529
529
530
- : marked
531
- This is actually a short-hand expression for a provider registration
532
- <span if-docs="ts">
530
+ block provider-shorthand
531
+ : marked
532
+ This is actually a shorthand expression for a provider registration
533
533
using a _provider_ object literal with two properties:
534
- </span>
535
- <span if-docs="dart">
536
- that creates a new instance of the
537
- [Provider](../api/core/index/Provider-class.html) class:
538
- </span>
539
534
540
535
+ makeExample('dependency-injection/ts/app/providers.component.ts' ,'providers-3' )
541
536
Original file line number Diff line number Diff line change @@ -492,8 +492,6 @@ table
492
492
[viewChild](../api/core/index/ViewChild-var.html) and
493
493
[contentChild](../api/core/index/ContentChild-var.html).
494
494
495
- // TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../
496
-
497
495
:marked
498
496
### Binding target
499
497
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.
You can’t perform that action at this time.
0 commit comments