Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Because ng-repeat can not read properly JSON?

$
0
0

@IonBruno wrote:

The following array is in JSON:

In the code below I can read the "NOME_TIPO_ADICIONAL" contained in "TIPOS_ADICIONAIS":

`<div class="card" ng-repeat="tipo in detalhesProduto.TIPO_ADICIONAIS">
  <div class="item item-divider" style="text-align: center;"> {{tipo.NOME_TIPO_ADICIONAL}}
  </div>

`

But in the code below when I try to read the array "CONTEUDO" to display the values of "NOME_ADICIONAL" does not show anything:

`<div class="item item-text-wrap">
<div class="row" style="flex-wrap: wrap;">
  <div class="col col-100">
    <ion-list ng-repeat="aux in detalhesProduto.TIPO_ADICIONAIS.CONTEUDO">
      <ion-checkbox>{{aux.NOME_ADICIONAL}}</ion-checkbox>
    </ion-list>
  </div>
</div>

`

What am I doing wrong?
The variable "detalhesProduto" are storing the image content above ..

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>