I am using *ngIf
to conditionally show a block of code which works as I need it.
However I need to use [hidden]
or display:none
to actually hide the block in the dom. As I understand I can only provide true
or false
with [hidden]
.
How can I conditionally hide this from the Dom using [hidden]
or [class]
?
<div *ngIf="raid != -1;">
<p>Need to display:none inside of this</p>
</div>