I needed to hide a div based on a condition, so I decided to use the hidden property like below:
<div [hidden]="isControlDisplayed()?false:true">
The isControlDisplayed() method determines whether to show or hide the div based on the value of another dropdown (select) control in the form group. However, I noticed that when this method returns false, the change is not immediate and only reflects after clicking elsewhere on the window.
I have observed that Angular seems to call methods only during certain actions on the window. Can anyone help me find a solution to address this issue?
Appreciate any assistance! Thank you.