javascript - How can i display a deep nested objects in a table - AngularJs - Json -


hello members stackoverflow, i'm new on here.

i have problem application, i'm using angularjs , have http service, , showed in console log (i think doesn't matter hope can understand me).

first of all, have array of 5 objects.

first of all, 1 object in beginning(parent), it's parent , id, called 5 array of objects inside main object(parent), need called 1000+ objects inside main object , show 'em in html name, in application, object has name , id(properties).

ps: 5 array of objects have 40 objects inside, , 40 objects inside have above 120. controller.js

var app = angular.module('app', []) app.controller("controller", function ($scope, $http) {     $scope.objects= [];     var promise = $http.get("link1")         .then(function (response) {             console.log(response);             return $http.get('link2', {                 params: {                     id: response.data[0].id                 }             })         })     .then(function (response2) {         console.log(response2);         $scope.objects= response2.data;         return response2.data;     }) }) 

my html

<table class="table">     <tr ng-repeat="get in objects">   <td>{{x.name}}</a></td>            </tr>       </table> 

but show name's objects ( properties), in html showed 5 array of objects, 5 array of objects have more objects inside, advice?.

ps: objects can deleted or changed.

any advice, @ least being in right direction.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -