Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230801

How to create a button that shows/hides content on press?

$
0
0

This is easy…

In your ion-content add a *ngIf=“sometingTrue”

Do you set the property boolean in your code!

For not show!
<ion-content id="acesso-pendente" ion-padding="10" *ngIf="usuarioLiberado == false"> </ion-content>

For show up!
<ion-content id="acesso-pendente" ion-padding="10" *ngIf="usuarioLiberado == true"> </ion-content>


Viewing all articles
Browse latest Browse all 230801

Trending Articles



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