lib/generators/angularjs/install/templates/routes.coffee.erb in explainer_angularjs_scaffold-0.0.21 vs lib/generators/angularjs/install/templates/routes.coffee.erb in explainer_angularjs_scaffold-0.0.22
- old
+ new
@@ -1,15 +1,15 @@
root = global ? window
angular = root.angular
-thisApp = angular.module("Client", ["ngCookies"]).config(($routeProvider, $locationProvider) ->
+thisApp = angular.module("Client", ['ngCookies']).config(['$routeProvider', '$locationProvider' ,
+($routeProvider, $locationProvider) ->
+ #$locationProvider.hashPrefix('');
$locationProvider.html5Mode true
$routeProvider.when("/",
controller: "WelcomeCtrl"
templateUrl: "<%= asset_path('welcome/index.html') %>"
).otherwise redirectTo: "/"
-)
-# exports
-root.thisApp = thisApp
+])
-
+root.thisApp = thisApp