I have an HTML element annotated with ng-show which I hide/show the element based on a boolean value that's toggled between true/false on a sibling element on ng-click(). When I inspect the element in the browser, I always see the annotated with ng-show, even if it's hidden.
Here is my div with ng-show:
<div ng-show="!showWhatsNewSection" </div>
...
And here is my element which toggles showing / hiding the whats new section.
<span ng-click="showWhatsNewSection = !showWhatsNewSection"> </span>
Is there any way to hide the whatsNewSection from the browser source code on inspect element when that section is hidden (i.e. when showWhatsNewSection is false?