Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

showWhen platform in normal ionic serve

$
0
0

@mattinnz wrote:

Hi,

I have the following in a modal template:

  <button ion-button (click)="cancel()">
        <span ion-text color="primary" showWhen="ios">Cancel</span>
        <ion-icon name="md-close" showWhen="android,windows"></ion-icon>
      </button>

When running in ionic serve --lab it works as expected. However in normal ionic serve I won't see any of these buttons. Which also makes sense, but I was wondering what the "platform" spec should be so that it appears in that context too?

regards
Matt

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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