I have a angularjs
component, In the component I have following HTML
<div id="panel" class="hide-div">
<div id="viewPort" class="hide-div">
...
</div>
</div>
There is a third party javascript/jquery
library, I don't have control over third party library, third-party library removes the class hide-div
from the viewPort
on some server-side event.
hide-div
class hides the element.
Now my requirement is to remove the hide-div
class from panel
, when it is removed from viewPort
. In short if viewPort
is hidden then panel should be hidden and if viewPort
is visible then panel
should be visible too.