I have a ng-repeat with fliter like below,
HTML
<li ng-repeat="article_data in articles | ArticleFilter:sfilter">
{{article_data.article_title}}
</li>
Javascript
ey.filter('ArticleFilter', function(){
return function(items, filters){
var arrayToReturn = [];
if(value.article_title.toLowerCase().indexOf(filters.search_text.toLowerCase())==0)
arrayToReturn.push(value);
return arrayToReturn;
}})
I need to check the result is empty or not,and show a message .Is it possible to do? I have tried {{articles.length}}
but this is not the length of filtered result.