88
rated 0 times
[
91]
[
3]
/ answers: 1 / hits: 69739
/ 11 Years ago, thu, july 11, 2013, 12:00:00
I am passing date
value to my custom filter this way:
angular.module('myapp').
filter('filterReceiptsForDate', function () {
return function (input, date) {
var out = _.filter(input, function (item) {
return moment(item.value.created).format('YYYY-MM-DD') == date;
});
return out;
}
});
I would like to inject a couple of scope variables there too, like what I can do in directives. Is that possible to do this without having to passing these vars explicitly as function arguments?
More From » angularjs