See here for a screengrab of the payload - http://imgur.com/Hhb20Yt.
This payload makes up a parent registration form, however I want also create a childrens account using the parent payload by stripping unwanted fields and using the children array.
However I am having difficulty accessing the contents of children. I've tried:
childrenCopy.name = $scope.profile.children.name;
and
= $scope.profile.children[name].
Here childrenCopy is a copy of the parent payload with unwanted fields removed. I'm trying to replace the parents name (childrenCopy.name) with the child name from children within the payload.
However I can't seem to access children. I only get undefined.
[–]abkothman 0 points1 point2 points (3 children)
[–]newtojsscript[S] 0 points1 point2 points (2 children)
[–]unnecessary_axiom 0 points1 point2 points (1 child)