Hi Sander,

Thanks for helping. I made the changes you proposed but I get this error:
I reproduced my error here:https://embed.plnkr.co/8VxK655nulNPVMofiAvU/
Please check it out. Please advice!
ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has 
changed after it was checked. Previous value: '{
  "parentField1": "jhfgjh",
  "parentField2": "sdsfafa",
  "parentHiddenField1": "adsfa",
  "children": [
    {
      "id": 1495333755,
      "childField1": "adsfa",
      "childField2": "adsfa",
      "childHiddenField1": "adfafa",
      "kid": [
        {
          "id": 1495333755,
          "infantField": "adfa"
        }
      ]
    },
    {
      "id": 1495333797,
      "childField1": "",
      "childField2": "",
      "childHiddenField1": "",
      "kid": [
        {
          "id": 1495333797,
          "infantField": ""
        }
      ]
    }
  ]
}'. Current value: '{
  "parentField1": "jhfgjh",
  "parentField2": "sdsfafa",
  "parentHiddenField1": "adsfa",
  "children": [
    {
      "id": 1495333755,
      "childField1": "adsfa",
      "childField2": "adsfa",
      "childHiddenField1": "adfafa",
      "kid": [
        {
          "id": 1495333755,
          "infantField": "adfa"
        }
      ]
    },
    {
      "id": 1495333797,
      "childField1": "",
      "childField2": "",
      "childHiddenField1": "",
      "kid": [
        {
          "id": 1495333797,
          "infantField": ""
        },
        {
          "id": 1495333797,
          "infantField": ""
        }
      ]
    }
  ]
}'.
    at viewDebugError (core.es5.js:8633)
    at expressionChangedAfterItHasBeenCheckedError (core.es5.js:8611)
    at checkBindingNoChanges (core.es5.js:8775)
    at checkNoChangesNodeInline (core.es5.js:12329)
    at checkNoChangesNode (core.es5.js:12303)
    at debugCheckNoChangesNode (core.es5.js:12922)
    at debugCheckRenderNodeFn (core.es5.js:12862)
    at Object.eval [as updateRenderer] (MainFormComponent.html:82)
    at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:12844)
    at checkNoChangesView (core.es5.js:12125)


On Friday, May 19, 2017 at 11:18:50 PM UTC-5, Sander Elias wrote:
>
> Hi Warren,
>
> Well, that is correct behaviour, as you are not adding any kids at the 
> moment you do an addChild
>
>     addChild() {
>         const child: ChildData = {
>             id: Math.floor(Math.random() * 100),
>             childField1: '',
>             childField2: '',
>             childHiddenField1: '',
>             kid: [{
>                     id:Math.floor(Math.random() * 100) ,
>                     infantField: 'test1'
>                 }]
>         };
> Thank You, Warren 
>
 
>
 
 

> If you amend you code like the above, you will see the form will be 
> displayed.
>
> Regards
> Sander 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to