Get data directly from nested array in AngulaJS

Gerixxx

I have problem with reading data from nested array. Previously, I asked how to read data from nested array to display them in a table (as a new row) on HTML page; now, I need display data from nested array directly.

The array's structure: array1[var1,var2,array2[var3,var4]]

So... there is my problem:

<tr><br>
<td ng-repeat="...">...</td><br>
<tr>

I want to read var3 datas from array2 "directly", to display them side by side in the table. I need something as this:

<tr>
   <td ng-repeat="item in array1.array2">{{item.var3}}</td>
</tr>

It is possible?

Rebornix

If you already know the name of the nested array and you are sure it exists, < tr >< td ng-repeat="item in array1.array2">{{item}}< /td >< /tr > can work perfectly.

If what you want is to flatten this array from array1[var1,var2,array2[var3,var4]] to [var1, var2, var3, var4], lodash can do you a favor

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get the data from nested Hashmap?

From Dev

How to get the value from nested array in php

From Dev

How to get a value from nested array?

From Dev

How to get value of child element from json data directly in VBA

From Dev

PHP - Create a table from data in nested array

From Dev

JS Get image directly from video stream as data url

From Dev

Get a list (without nested list) directly from a list comprehension

From Dev

How to get data from nested objects in the form of array

From Dev

Getting json data from a nested array

From Dev

How to get data shown out of workspace or directly from application?

From Dev

Extract data directly from several vectors within a cell array in Matlab

From Dev

Get nested data from local JSON file

From Dev

get value from nested json array

From Dev

Get data directly from nested array in AngulaJS

From Dev

Return array from $.get() in nested loops

From Dev

How to get Data from Nested Array [Laravel]

From Dev

How to get data from not directly related tables Yii2

From Dev

Get value from nested array (json)

From Dev

Hive extract data from Nested Array

From Dev

Adding the input fields dynamically from nested json object in angulajs

From Dev

How to get data from nested json array android

From Dev

how to get data from nested arrays

From Dev

getting nested data from JSON array object

From Dev

Get values from nested array

From Dev

Get an array from nested objects

From Dev

How to get specific data from nested JSON

From Dev

How to extract data from this nested array

From Dev

how to get API data from nested array by php

From Dev

How to get the value from a nested array with objects

Related Related

HotTag

Archive