This repository has been archived by the owner. It is now read-only.
🅰️ Easily add csrf tokens to forms in angular templates.
CoffeeScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
bower.json
compile.sh
index.coffee
index.js

README.md

angular-add-csrf-token

If you use angular and templates with forms that need csrf tokens, this directive makes it easy to use them without polluting your code.

Install with bower:

bower install angular-add-csrf-token --save

Add to your app.coffee:

#= require angular-add-csrf-token

and to your module's dependencies:

angular.module('your-app', [
  'stefansundin.add-csrf-token'
])

Then add the directive to your form:

<form ... add-csrf-token>

And you're done!