I use the ng-repeat directive to print out all posts for a user.
<div ng-repeat="post in user.posts">
<p>{{ post.content }}</p>
</div>
I want to limit this to just printing out posts that have an "is_public" attribute equal to "true". How can I do this?
<div ng-repeat="post in user.posts ??? if post.public == true">
<p>{{ post.content }}</p>
</div>
I've seen the use of filter
with ng-repeat, but it looks like it's meant for dynamic filtering, not a case where I know what the filter should always be.