-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while binding array #25
Comments
I am also experiencing this in a similar scenario. I have a parent form that is nested three layers deep in the state tree, which contains an array of child subforms. During the {
workflow: {
page1: {
form: {
input1: "loadedInput",
childForms: [
{
childInput1: "loadedChildInput1"
}
]
}
}
}
} Following this generic example, in the HTML template, I have: <form [connect]="['workflow', 'page1', 'form']">
<input type="text"
name="input1"
ngControl ngModel>
<ng-template connectArray let-index connectArrayOf="childForms">
<div class="row" [ngModelGroup]="index">
<input type="text"
name="childInput1"
ngControl ngModel>
</div>
</ng-template>
</form> NOTE: While the documentation shows the {
workflow: {
page1: {
form: {
0: {
childInput1: "loadedChildInput1"
},
input1: "loadedInput",
childForms: [
{
childInput1: "loadedChildInput1"
}
]
}
}
}
} Right before this initial |
I am having this issue as well. The parent state is nested one level down the state tree, so it looks like this is the source of the problem. Any clues? Thanks! |
@jkachurek if you do the following you can get it at the right level
This works, However if your loading dyncamic content from the server it always seems to set your values back to empty. But at least its poiting at the correct level |
Hi guys. Im facing the very same issue, only somewhat later. Are there any solution to this? @el-davo's solution didn't work for me :/ |
This is a...
What toolchain are you using for transpilation/bundling?
Environment
NodeJS Version: 6.10
Typescript Version: 2.3.0
Angular Version: 4.0.3
angular-redux/store version: 6.2.0
angular/cli version: 1.0.0-beta.32.3
OS: windows 10
Getting error
Cannot read property 'arrivalTime' of undefined
The problematic areas are surrounded by comment ERROR HERE
my html:
The rest of the forms are working fine
here is my interface:
this is the stack trace:
Thought
When I change the value in the problematic (with name "arrivalTime"), I see change in my store, but it creates a new object 0 in shiftType. perhaps the ref tree isn't right, but I checked it multiple times and seems it is like writing in the docs. Thanks
The text was updated successfully, but these errors were encountered: