Answers for "how to hide div in angular permanently"

1

angular.io hide

<div [style.visibility]="(numberOfUnreadAlerts == 0) ? 'hidden' : 'visible' ">
   COUNTER: {{numberOfUnreadAlerts}} 
</div>
Posted by: Guest on November-28-2020
1

nghide angular 10

// Just bind to the hidden property

[hidden]="!myVar"
Posted by: Guest on December-21-2020

Browse Popular Code Answers by Language