how to use if statement in html angular code example
Example 1: ngif else
Welcome back, friend.
Please friend, login.
Example 2: ngif
@Component({
selector: 'ng-if-else',
template: `
show = {{show}}
Text to show
Alternate text while primary text is hidden
`
})
export class NgIfElse {
show: boolean = true;
}