hide attribute according to condition in angular10 code example Example: nghide angular 10 // Just bind to the hidden property [hidden]="!myVar"