Skip to content

enome-components/angular-arrangeable-array

Repository files navigation

angular-arrangeable-array

Edit the order and remove items from an array.

Example

Check index.html or http://plnkr.co/UNdUUg

Installation

Install with component(1):

$ component install enome-components/angular-arrangeable-array

API

require('angular-arrangeable-array');

var app = window.angular.module('my-app', [ 'arrangeable-array' ]);

app.controller('Ctrl', function ($scope) {
  $scope.items = [ '/first', '/second', '/third', '/fourth' ];

  $scope.$watch('items', function () {
    console.log($scope.items);
  }, true);
});
<body ng-app='my-app' ng-controller='Ctrl'>
  <arrangeable-array array='items'></arrangeable-array>
</body>

License

MIT

About

Edit the order and remove items from an array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published