{"push_id":707823695,"size":1,"distinct_size":1,"ref":"refs/heads/patch-2","head":"12bd3b97756bb4d7f2fec566bbdbc1656add7959","before":"10587b0aa1dccece96aea14a29e6bb4713780f88","commits":[{"sha":"12bd3b97756bb4d7f2fec566bbdbc1656add7959","author":{"email":"a2691f47e4781d1d5a4ebb0400d4369e834258ed@libero.it","name":"Andrea Mannocci"},"message":"Update angular-deckgrid.js\n\nHi, I tried to add filter capabilities to your library.\r\nHere is my proposal; I also forked your great project and integrated my patch.\r\nAs I wrote previously in a previous comment in your repository issues\r\nBasically I injected `$filter` dependency in the module and used it in \r\n```javascript\r\nDeckgrid.prototype.$$createColumns = function $$createColumns () { \r\n    /*...*/\r\n    angular.forEach($filter('filter')(this.$$scope.model, this.$$scope.filter), function onIteration (card, index) { /*...*/ }\r\n    /*...*/\r\n}\r\n```\r\nin order to filter `source` attribute by a new directive attribute (called `filter`) for which I registered a new watcher\r\n```javascript\r\nfilterWatcher = this.$$scope.$watchCollection('filter', this.$$onModelChange.bind(this));\r\nthis.$$watchers.push(filterWatcher);\r\n```\r\n\r\nAnd sorry.. I'm a github newby..","distinct":true,"url":"https://api.github.com/repos/andremann/angular-deckgrid/commits/12bd3b97756bb4d7f2fec566bbdbc1656add7959"}]}