This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree 1 file changed +3
-4
lines changed
public/docs/ts/latest/guide
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -571,15 +571,14 @@ a(id="one-time-initialization")
571
571
The following binding pairs do the same thing:
572
572
+ makeExample('template-syntax/ts/app/app.component.html' , 'property-binding-vs-interpolation' )( format ="." )
573
573
:marked
574
- Interpolation is a convenient alternative for property binding in many cases.
575
- In fact, Angular translates those interpolations into the corresponding property bindings
576
- before rendering the view.
574
+ _Interpolation_ is a convenient alternative to _property binding_ in many cases.
577
575
578
- There is no technical reason to prefer one form to the other.
576
+ When rendering data values as strings, there is no technical reason to prefer one form to the other.
579
577
We lean toward readability, which tends to favor interpolation.
580
578
We suggest establishing coding style rules and choosing the form that
581
579
both conforms to the rules and feels most natural for the task at hand.
582
580
581
+ When setting an element property to a non-string data value, you must use _property binding_.
583
582
584
583
:marked
585
584
#### Content security
You can’t perform that action at this time.
0 commit comments