Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

🅰️ Easily add csrf tokens to forms in angular templates.

Notifications You must be signed in to change notification settings

stefansundin/angular-add-csrf-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

🅰️ Easily add csrf tokens to forms in angular templates.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published