Does not pull the given Array value

0

I have a small problem with AngularJS

I need to pull the array values

angular.module('app', [])
.controller('Ctrl', ['$scope', function($scope) {

  $scope.data = [{
    a: 1,
    b: 2,
    c: [{
      d: "z",
      e: "4"
    },{
      d: "z",
      e: "4"
    }]
  }];  

}]);

Html

<div ng-repeat="i in data">
           <p>Não puxa: {{i.c.d}}</p>
           <p>Puxando o Valor: {{i.c.0.d}}</p>
 </div>

And unfortunately I can not pull. Follow Link: link

    
asked by anonymous 25.09.2014 / 17:13

2 answers

0

$scope.data = [{
  a: 1,
  b: 2,
  c: {
    d: "z",
    e: "4"
  },
  {
    d: "z",
    e: "4"
  }]
}];  
    
25.09.2014 / 17:21
0

I was able to resolve this:

<div ng-repeat="i in data">
   <p>Não puxa: {{i.a}}</p>     
   <p ng-repeat="day in i.c">Puxando o Valor: {{day.d}}</p>       
</div>
    
25.09.2014 / 20:10