I'm listing stories on an angular html page as follows:
<li class="myStories" ng-repeat="story in authors.currentAuthor.stories | orderBy: '-_id'">
<!-- <span ng-if="checked" class="animate-if"> -->
Title: {{ story.title }}<br>
Genre: {{ story.genre }}
<a ui-sref-active="active" ui-sref="storyEdit({ id: story._id })"
id="{{ story._id }}">Edit Story
</a>
</li>
The Angular docs state that "ng-if directive remove DOM element if expression return false" so I wondered whether it is possible/legitimate to delete an item using ng-if?