lib/generators/angularjs/install/templates/routes.js.erb in explainer_angularjs_scaffold-0.0.21 vs lib/generators/angularjs/install/templates/routes.js.erb in explainer_angularjs_scaffold-0.0.22
- old
+ new
@@ -1,20 +1,23 @@
+// Generated by CoffeeScript 1.4.0
(function() {
var angular, root, thisApp;
root = typeof global !== "undefined" && global !== null ? global : window;
angular = root.angular;
- thisApp = angular.module("Client", ["ngCookies"]).config(function($routeProvider, $locationProvider) {
- $locationProvider.html5Mode(true);
- return $routeProvider.when("/", {
- controller: "WelcomeCtrl",
- templateUrl: "<%= asset_path('welcome/index.html') %>"
- }).otherwise({
- redirectTo: "/"
- });
- });
+ thisApp = angular.module("Client", ['ngCookies']).config([
+ '$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
+ $locationProvider.html5Mode(true);
+ return $routeProvider.when("/", {
+ controller: "WelcomeCtrl",
+ templateUrl: "<%= asset_path('welcome/index.html') %>"
+ }).otherwise({
+ redirectTo: "/"
+ });
+ }
+ ]);
root.thisApp = thisApp;
}).call(this);