AngularJS: remove / hide parent but save child

In AngularJS, how can we hide / remove an element without hiding / deleting it.

<div class="hide-or-remove-me">
    <p>Leave me here.</p>
</div>

Is there a built-in Angular directive?

+3
source share
1 answer
<div class="hide-or-remove-me" ng-click="show = show!" ng-show="show">
<p>Leave me here.</p>
</div>
<p ng-click="show = show!" ng-show="!show">leave me here.</p>

This is my option.

0
source

All Articles