I want to add style="overflow:hidden"
in body
tag dynamically from component on click if a button.
On click of this <a>
isWriteEmail
will be true and at that time it should add the overflow:hidden
to body
<a href="javascript:void(0)"
class="mail-ac-ico"
(click)="appComponent.isWriteEmail = true;"
data-toggle="tooltip"
tooltip="Compose"
title="Compose">
<img src="assets/images/icons/icon-open-email.png"
alt="email icon">
</a>
tried this
<body *ngIf="isWriteEmail" style="overflow: hidden;">
didn't work