How to show a message when filter returns nothing in ng-repeat.

1,993 views
Skip to first unread message

sk

unread,
Feb 3, 2014, 5:07:22 AM2/3/14
to ang...@googlegroups.com
I would like to show one div(message) when no items returned on filter(ng-repeat).

Filter is happening based on select box (ng-model). And there are no results for some select options, at that time user should be able to read a message at same place.
Can I use ng-show/hide here? How?

Thanks,

Sander Elias

unread,
Feb 3, 2014, 5:51:56 AM2/3/14
to ang...@googlegroups.com
Hi sk,

Yes, you can use ng-show and ng-hide.
If you build a plunk illustrating your issue, I will take a look at it.

Regards
Sansder

Aadithya C Udupa

unread,
Feb 3, 2014, 6:28:26 AM2/3/14
to ang...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.



--
Regards,
Aadithya C Udupa
Reply all
Reply to author
Forward
0 new messages