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

A question about conditionals

$
0
0

@Wrybread wrote:

Using Ionic 4, and I’m trying to show a div only if two conditions are met:

<div *ngIf="variable1 === 1 && variable2 === 2">***</div>

That doesn’t work.

This works for just one variable though:

<div *ngIf="variable1 === 1">***</div>

I don’t imagine anyone has any tips?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



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