ng if and else in angular 8 validaton code example
Example: 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;
}