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

How to use hidden attribute to hide an element in an array

$
0
0

I have list below as a side menu .



{{type.name}}

This is an array "options" in my class .

public options =
[
{name : 'RegisterMe'},
{name : 'MY CLINICS'},
];

constructor(public viewCtrl: ViewController)
{
this.userStatus='Registered'
}

I want to hide RegisterMe option in list if the UserSTatus is Registered. How can i achieve this.

Thanks for help in advance


Viewing all articles
Browse latest Browse all 229727

Trending Articles



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