From 9319b5f3299eb591877d208aa05dec5bc9b136c1 Mon Sep 17 00:00:00 2001 From: Josep Sayol Date: Thu, 23 Mar 2017 01:18:22 +0100 Subject: [PATCH] docs(common): update ngFor docs to new `as` syntax (#15166) --- packages/common/src/directives/ng_for_of.ts | 6 +++--- .../forms/ts/nestedFormArray/nested_form_array_example.ts | 2 +- packages/forms/src/directives/error_examples.ts | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/common/src/directives/ng_for_of.ts b/packages/common/src/directives/ng_for_of.ts index 1f2a8dad55..feb9c7b0d6 100644 --- a/packages/common/src/directives/ng_for_of.ts +++ b/packages/common/src/directives/ng_for_of.ts @@ -45,7 +45,7 @@ export class NgForOfContext { * - `odd: boolean`: True when the item has an odd index in the iterable. * * ``` - *
  • + *
  • * {{i}}/{{users.length}}. {{user}} default *
  • * ``` @@ -78,8 +78,8 @@ export class NgForOfContext { * * ### Syntax * - * - `
  • ...
  • ` - * - `
  • ...
  • ` + * - `
  • ...
  • ` + * - `
  • ...
  • ` * * With `` element: * diff --git a/packages/examples/forms/ts/nestedFormArray/nested_form_array_example.ts b/packages/examples/forms/ts/nestedFormArray/nested_form_array_example.ts index 346221acc7..1554c7ef17 100644 --- a/packages/examples/forms/ts/nestedFormArray/nested_form_array_example.ts +++ b/packages/examples/forms/ts/nestedFormArray/nested_form_array_example.ts @@ -16,7 +16,7 @@ import {FormArray, FormControl, FormGroup} from '@angular/forms'; template: `
    -
    +
    diff --git a/packages/forms/src/directives/error_examples.ts b/packages/forms/src/directives/error_examples.ts index a59059ab69..d68553b88c 100644 --- a/packages/forms/src/directives/error_examples.ts +++ b/packages/forms/src/directives/error_examples.ts @@ -34,7 +34,7 @@ export const FormErrorExamples = { formArrayName: `
    -
    +
    @@ -61,4 +61,3 @@ export const FormErrorExamples = {
    ` }; -  \ No newline at end of file