Angular::Ui::Sortable::Rails
TODO: Write a gem description
Installation
Add gem to your Gemfile & run bundle install in the terminal:
gem 'angular-ui-sortable-rails'
Usage
app = angular.module 'app', ['ui.sortable.rails']
div (ng-model='data.blocks' ui-sortable="{update: updateSrting, containment: 'parent', axis: 'y', cursor: 'move'}")
div.common-box (ng-repeat="block in data.blocks" dynamic-directive)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request