angular.Array[apply ? 'add' : 'remove'](this.item.filters, filter);
So if you have many updateXyz methods, they would become less overwhelming.
Regards,
Witold Szczerba
> --
> You received this message because you are subscribed to the Google Groups
> "angular" group.
> To post to this group, send email to ang...@googlegroups.com.
> To unsubscribe from this group, send email to
> angular+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/angular?hl=en.
>
--
BTW: you can convert your 4 lines long updateFilter method to just one line:
angular.Array[apply ? 'add' : 'remove'](this.item.filters, filter);
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.