is the interpolated image.
is the property bound image.
"{{title}}" is the interpolated title.
+"" is the property bound title.
+ +"{{evilTitle}}" is the interpolated evil title.
+"" is the property bound evil title.
+ + top diff --git a/public/docs/ts/_cache/guide/template-syntax.jade b/public/docs/ts/_cache/guide/template-syntax.jade index 3e0fb06ce8..51aaf301c9 100644 --- a/public/docs/ts/_cache/guide/template-syntax.jade +++ b/public/docs/ts/_cache/guide/template-syntax.jade @@ -858,9 +858,18 @@ block style-property-name-dart-diff header [()] = banana in a box :marked To remember that the parentheses go inside the brackets, visualize a *banana in a box*. -:marked - Alternatively, we can use the canonical prefix form: -+makeExample('template-syntax/ts/app/app.component.html', 'NgModel-2')(format=".") + ++ifDocsFor('ts|js') + .callout.is-important + header FormsModule is Required to use ngModel + :marked + Before we can use the `ngModel` directive in a two-way data binding, + we must import the `FormsModule` and add it to the Angular module's `imports` list. + Learn more about the `FormsModule` and `ngModel` in the + [Forms](../guide/forms.html#ngModel) chapter. + + +makeExample('template-syntax/ts/app/app.module.1.ts', '', 'app.module.ts (FormsModule import)') + :marked There’s a story behind this construction, a story that builds on the property and event binding techniques we learned previously. diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 9cf213cb1d..51aaf301c9 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -859,20 +859,17 @@ block style-property-name-dart-diff :marked To remember that the parentheses go inside the brackets, visualize a *banana in a box*. -.callout.is-important - header FormsModule is Required to use ngModel - :marked - Before we can use `ngModel` two-way data binding, we need to import the `FormsModule` - package in our Angular module. We add it to the `NgModule` decorator's `imports` array. This array contains the list - of external modules used by our application. -