I'm new to AngularJS (and web development) but quite excited about the two-way binding and ng-repeat possibilities.
I would like to build a table like structure of textfields where i can add more fields to a column and then it adds fields to the columns at the right. Wish to use it to build a nested JSON file.
Currently thinking of an json structure like this, but would like to have a more flat structure instead...
{
"NoClicks":
{ "C1": ["R1"],
"C2": ["R1"],
"C3": ["R1"]
},
"C1_R1_clicked":
{ "C1": ["R1", "R2"],
"C2": ["R1", "R2"],
"C3": ["R1", "R2"]
},
"C2_R1_clicked":
{ "C1": ["R1"],
"C2": ["R1", "R2"],
"C3": ["R1", "R2"]
}
,
"C3_R1_clicked":
{ "C1": ["R1"],
"C2": ["R1"],
"C3": ["R1", "R2"]
}
}
Update
I have tried to answer my own question and are getting very close to the target..
But I would be thankful for any answer (or mod of my answer) that lets me archive the goal. This will of course marked as the solution to the question.
