I have this:
<div class="row" ng-repeat="(key, value) in categories">
<h5>{{ value }}</h5>
<ul>
<li ng-repeat="post in $parent.posts | filter: key">{{ post.name }} -- {{ post.category }}</li>
</ul>
</div>
I want the nested ng-repeat
of the post be to filtered by the category key
.
The idea is to have each post displaying related posts, where {{ post.category }}
is same as {{ value }}