visibility:hidden in Angular 2
You can set the visibility
style attribute with style binding:
<div [style.visibility]="'hidden'"></div><div [style.visibility]="isDivVisible ? 'visible' : 'hidden'"></div>
An example is shown in this plunker.
You can set the visibility
style attribute with style binding:
<div [style.visibility]="'hidden'"></div><div [style.visibility]="isDivVisible ? 'visible' : 'hidden'"></div>
An example is shown in this plunker.