Angular replacement for jQueryUJS data-method
CoffeeScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
src
.gitignore
Gruntfile.coffee
LICENSE.txt
README.md
bower.json
package.json

README.md

Angular UJS

jQuery UJS replacement for data-method

With Rails:

link_to "Delete", foo_path(1), data: {'method': :delete, 'confirm': 'R U sure?'}

Without Rails:

<div ng-app="app">
  <a href="/test" data-method="delete" data-confirm="R U sure?">Delete</a>
</div>

Include ujs module in your app module.

angular.module('myApp', ['ujs']);

Development

npm install
grunt

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request