Quantcast
Viewing all articles
Browse latest Browse all 70867

Because ng-repeat can not read properly JSON?

@IonBruno wrote:

The following array is in JSON:

Image may be NSFW.
Clik here to view.

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 70867

Trending Articles