Skip to content Skip to sidebar Skip to footer

Angularjs Filtering Data Based On Option Selection And Tag Creation Based On Selection

Here is my code : Jsfiddle Initialy its should display all the data. I'm able to add new tags and based on tag selection data is filtering but data should be added below the exi

Solution 1:

finally Everything is resolved.

//FILTER

    .filter('findobj', function () {
     returnfunction (dataobj, multipleVlaue) {
         if (!multipleVlaue) return dataobj;
         return dataobj.filter(function (news) {
             var tofilter = [];

             angular.forEach(multipleVlaue,function(v,i){ 
              tofilter.push(v);
             });

             return news.CategoryList.some(function (category) {
            return tofilter.indexOf(category.DisplayName)>-1;
         });

         });
     };
     })

Here u can refer : CODE

Post a Comment for "Angularjs Filtering Data Based On Option Selection And Tag Creation Based On Selection"