-
-
Save chelsea/9927585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html ng-app='order'> | |
<head> | |
<script src='http://localhost:3000/assets/angular.js'></script> | |
<script src='http://localhost:3000/assets/angular-route.js'></script> | |
<script src='order_app.js'></script> | |
</head> | |
<body> | |
<div ng-view> | |
stuff goes here | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree = {} | |
Spree.Admin = {} | |
Spree.Admin.OrderApp = angular.module('order', ['ngRoute']) | |
Spree.Admin.OrderApp.config(['$routeProvider', function ($routeProvider) { | |
$routeProvider. | |
otherwise({ | |
controller: 'HomeCtrl' | |
}) | |
} | |
]) | |
Spree.Admin.OrderApp.controller('HomeCtrl', ['$scope', '$location', function($scope, $location) { | |
console.log($location) | |
$scope.foo = 'bar' | |
}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment