I have some variable that is a boolean and can be true or false, based on that value I have to show some element in HTML like this:
<p *ngif=isOwner>Test</p>
The problem is I have that I have to hide that element is value is false but to show element is value is true:
this.storage.get('User').then((val) => {
this.isOwner = val.Owner.IsOwner;
});
What will be the proper way to do that in Angular 2, just within HTML, value will always be there, and will be true or false?
<p *ngIf="isOwner">Test</p>- baao