From 6ef7a76e3943453fb5084a2501d04109f38ca9f9 Mon Sep 17 00:00:00 2001 From: John Lindquist Date: Thu, 25 Aug 2016 12:12:40 -0600 Subject: [PATCH] doc(form): updating example to avoid "TypeError: Converting circular structure to JSON" (#10184) --- modules/@angular/forms/src/directives/ng_model_group.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/@angular/forms/src/directives/ng_model_group.ts b/modules/@angular/forms/src/directives/ng_model_group.ts index eb37a09a96..d542058625 100644 --- a/modules/@angular/forms/src/directives/ng_model_group.ts +++ b/modules/@angular/forms/src/directives/ng_model_group.ts @@ -39,12 +39,12 @@ export const modelGroupProvider: any = { *

Last:

* *

Name value:

- *
{{ mgName | json }}
+ *
{{ mgName.value | json }}
*

Name is {{mgName?.valid ? "valid" : "invalid"}}

*

What's your favorite food?

*

*

Form value

- *
{{ f | json }}
+ *
{{ f.value | json }}
* * * `