Hi,
In my partial I have this:

<div ng-repeat="item in items|myCustomFilter">{{item.Name}}</div>

In my filter I have:

define(['./module'], function (filters) {
    'use strict';

    return filters.filter('myCustomFilter',  function () {
        return function (item) {
            if (item.Name !== "Inactive") return item;
        }
    });
});

The function gets item as undefined.

Any idea why?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to