ng2bln-sort-by-attribute-pipe
v1.1.9
Published
ng2 pipe to sorts an array of objects by one of it's property's value.
Downloads
4
Readme
ng2bln-sort-by-attribute-pipe
ng2bln-sort-by-attribute-pipe is a simple to use ng2 pipe. It sorts an array of objects by a provided property value
Tech
ng2bln-sort-by-attribute-pipe uses a number of open source projects to work properly:
- [Angular.io] - HTML enhanced for web apps!
Installation
ng2bln-sort-by-attribute-pipe requires Angular.io v2.x to run.
How to use the pipe
The pipe takes an parameter object with this (ts) interface:
Allowed instances of Sorting.sortDir are "asc", and "desc". Allowed instances of Sorting.sortTye are "Number", "String", and "Date". For more details see the test spec shipped with this package.
Examples
License
MIT
Free Software, Hell Yeah!
https://www.npmjs.com/~gdrahota [keymaster.js]: https://github.com/~gdrahota [Angular2]: http://angular.io