Starting on Angular models for Checkout, pretties

This commit is contained in:
Will Marshall
2014-02-13 16:13:50 +11:00
parent 7f58007c45
commit 25916caeb4
10 changed files with 179 additions and 101 deletions

View File

@@ -0,0 +1,2 @@
window.Checkout = angular.module("Checkout", ["ngResource", "filters"]).config ($httpProvider) ->
$httpProvider.defaults.headers.post['X-CSRF-Token'] = $('meta[name="csrf-token"]').attr('content')

View File

@@ -0,0 +1,2 @@
angular.module("Checkout").controller "CheckoutCtrl", ($scope, $rootScope) ->
$scope.require_ship_method = false