Show Hide In Ionic Framework
I want a show hide function for my ionic app: Below is what I have done so far, in xyz.html file:
Solution 1:
Use the Renderer2 to addClass, setStyle, or whatever you want, passing the element reference to your click event handler
Here a Demo
HTML
<ion-item *ngFor="let item of items"><h3 #text>{{item}}h3><buttonion-buttonitem-right (click)="onShow(text)">Showbutton><buttonion-buttoncolor="danger"item-right (click)="onHide(text)">Hidebutton>ion-item>
Post a Comment for "Show Hide In Ionic Framework"