Sha256: 8145ec97f6f2d886d436b24f599afee07aa05f7633537e609f0f12536f532367

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

root = global ? window

CsrfCtrl = ["$cookieStore", ($cookieStore) ->
  $cookieStore.put "XSRF-TOKEN", 
  angular.element(document.getElementById("csrf")).attr("data-csrf")
]
# exports
root.CsrfCtrl = CsrfCtrl

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
explainer_angularjs_scaffold-0.0.21 lib/generators/angularjs/install/templates/csrf_controller.js.coffee