hidden div angular code example
Example 1: angular.io hide
<div [style.visibility]="(numberOfUnreadAlerts == 0) ? 'hidden' : 'visible' ">
COUNTER: {{numberOfUnreadAlerts}}
</div>
Example 2: nghide angular 10
// Just bind to the hidden property
[hidden]="!myVar"