I have list below as a side menu .
<ion-list>
<div *ngIf="userStatus!='Registered'">
<ion-item *ngFor="let type of options" (click)="close(type.name)">{{type.name}}</ion-item>
</div>
</ion-list>
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