Skip to content
Angular replacement for jQueryUJS data-method https://github.com/monterail/angular-ujs
CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
build
src
.gitignore
Gruntfile.coffee
LICENSE.txt
README.md Make it really work like jquery-ujs
bower.json
package.json Release 0.2.4

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
Something went wrong with that request. Please try again.