How to make a collapse in Ionic?

3

I'm trying to do a Collapse and it looks like this:

HTML

<ion-content>

    {{topicos.name}}

<ion-item *ngFor="let aulas of topicos.get_classes" [hidden]="deixainvisivel" menuClose ion-item (click)="openClass(aulas.id)">{{aulas.name}} <b>{{aulas.time}}</b></ion-item>

TS

  Collapse(id){
console.log(id)
this.idtopic = id;
this.deixainvisivel = !this.deixainvisivel;

}

The problem is that it closes all "topics", I have to find a way to close only those that have the divider item ID

    
asked by anonymous 23.05.2017 / 19:24

0 answers