Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-order-pipe

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-order-pipe - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

12

CHANGELOG.md

@@ -0,1 +1,13 @@

### 0.1.4
[[#11](https://github.com/VadimDez/ng2-order-pipe/issues/11)] - Sort array without expression
```html
<div *ngFor="let i of [3, 2, 1] | orderBy">{{ i }}</div>
```
Result:
```html
<div>1</div>
<div>2</div>
<div>3</div>
```
### 0.1.3

@@ -2,0 +14,0 @@ Angular 4

3

dist/src/ng2-order.pipe.js

@@ -17,2 +17,5 @@ "use strict";

var array = value.sort(function (a, b) {
if (!expression) {
return a > b ? 1 : -1;
}
return a[expression] > b[expression] ? 1 : -1;

@@ -19,0 +22,0 @@ });

2

package.json
{
"name": "ng2-order-pipe",
"version": "0.1.3",
"version": "0.1.4",
"description": "Angular2 order pipe, order collection by a field",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc