I have a
angularjs component, In the component I have following
<div id="panel" class="hide-div">
<div id="viewPort" class="hide-div">
There is a third party
hide-div from the
viewPort on some server-side event.
hide-div class hides the element.
Now my requirement is to remove the
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.