AngularJs ng-repeat 2D array in table, each subarray one column -
I have an array and I have to put that array in the table. First of all: ['value': '1_1', 'rolle': 'one1'}, {'value': '2_1', 'rolle': ' Two {'value': '3' ',' rolle ':' three1 '}]}, {' second ': [{' value ':' 1_2 ',' raul ':' a2 '} , {'Value': '2_2', 'rolle': 'two2'}, {'value': '3_2', 'rolle': 'three2'}]}];
The result table should consist of 4 columns, each one must be one (or two) column (s). Like this:
So far I got it only for the first time:
& lt; Table & gt; & Lt; TDI ng-repeat = "test in test" & gt; & Lt; Tr ng-repeat = "test.first" & gt; In T1 & LT; TD & gt; {{T1.rolle}} & lt; / Td> & Lt; TD & gt; {{T1.value}} & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;
How can I add another sub-column as a column? This is not necessary to form a table.
var app = angular. Module ('app', []); ('' 1_1 ',' rolle ':' one1 '}, {' value ':' '' 2 '', 'rolle': 'two1'}, {'value': '3_1', 'rolle': '' 3 ''}}}, {'second': [{'value': '1_2', 'rolle': '' 1 2 '}, {' value ':' 2_2 ',' roles': 'two 2' }, {'Value': '3_2', 'raul': 'three 2'}]}}}})
TD {limit: solid 1px gray}
Comments
Post a Comment