
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
An angular 4 and above component for sorting list supporting drag and drop sort.
ngx-sortable an angular 4 and above component for sorting list supporting drag and drop sort.
npm install ngx-sortableNgxSortableModule into your app.module;import { NgxSortableModule } from 'ngx-sortable'
NgxSortableModule to the imports of your NgModule:@NgModule({
imports: [
...,
NgxSortableModule
],
...
})
class YourModule { ... }
<ngx-sortable></ngx-sortable> in your templates to add sortable list in your view <ngx-sortable [items]="items" [name]="'List'" (listSorted)="listOrderChanged($event)">
<ng-template let-item>
<div class="sortable-list-item">
{{item}}
</div>
</ng-template>
</ngx-sortable>
Where content inside
<ng-template> </ng-template>is the template that will be used for displaying list items. Also the class can be named accordingly this is just an example. Create a class and add it to your root style.css
items: any[] - array of list items.name: string - List name that will be shown in the header.listStyle: any - list styles such as height, width.active: boolean - you can use this option to activate / deactivate the sorting programmatically.listStyle = {
width:'300px', //width of the list defaults to 300
height: '250px', //height of the list defaults to 250
}
listSorted($event): Event - when list is sorted emits listSorted event with updated orderWhere
$eventis the sorted list
Found a bug or an issue with this? Open a new issue here on GitHub.
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
FAQs
An angular 4 and above component for sorting list supporting drag and drop sort.
The npm package ngx-sort receives a total of 11 weekly downloads. As such, ngx-sort popularity was classified as not popular.
We found that ngx-sort 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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.