Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular-order-object-by
Advanced tools
An Angular filter to order an object of objects by a given attribute on the children objects
This filter was created by Justin Klemm because the default Angular orderBy filter fails to sort properly Objects of Objects in the context of ngRepeat.
Install as Bower dependency: bower install angular-order-object-by
.
Include on your Angular module's dependencies:
angular.module('YourModule', ['ngOrderObjectBy'])
Then, in your application views:
<ul>
<li ng-repeat="object in objects | orderObjectBy: 'criteria' : direction">...</li>
</ul>
Thanks to @diegou work now sorting by children's sudocument's properties is supported:
<ul>
<li ng-repeat="object in objects | orderObjectBy: 'property.criteria' : direction">...</li>
</ul>
For an example see test/index.html.
You need karma, karma-cli, karma-jasmine, phantomjs, karma-phantom-js-launcher and angular-mocks in order to run the tests.
karma start karma.conf.js
Feel free to fork, and submit your pull requests using a feature branch on your fork.
Don't forget to add tests! :wink:
FAQs
An Angular filter to order an object of objects by a given attribute on the children objects
The npm package angular-order-object-by receives a total of 41 weekly downloads. As such, angular-order-object-by popularity was classified as not popular.
We found that angular-order-object-by demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.