1
I’m using the Angular JS chip system and I have a problem showing the name(description) of the objects inside the array.
The code html
that’s the one:
<div layout="row" layout-xs="column">
<div flex>
<div class="label-view">Esportes</div>
<md-chip>{{ ctrl.esportes[0].nome}}</md-chip>
</div>
</div>
And the code that’s on js
that’s the one:
this.esportes = [{id: 5, descricao: "Futebol"}, {id: 6, descricao: "Basquete"}]
In the html
only this showing the first because of the esportes[0]
but I want it to show everyone inside the array esportes
regardless of his size.
In case you got confused, I left the code on this site: codePen
it’s just not very cool to put the same name
chipText
in interaction ...– novic