lib/susanoo/templates/generators/ng_module/module.js.erb in susanoo-0.13.0 vs lib/susanoo/templates/generators/ng_module/module.js.erb in susanoo-0.13.1
- old
+ new
@@ -1,15 +1,16 @@
// <%= module_name.humanize%> Module
var <%= module_name %> = angular.module("<%= module_name.camelize %>", ["gettext"<% dependencies.each do |dep| %>, "<%= dep.camelize %>"<% end %>]);
// configuration section ---------------------------
-<%= module_name %>.config(["$routeProvider", function($routeProvider){
+<%= module_name %>.config(["$stateProvider", function($stateProvider){
// Configuring application index route.
// Add any route you need here.
- $routeProvider.
- when("/<%= directory_name %><%= module_name %>/", {
- templateUrl: template("<%= directory_name %><%= module_name %>/index"),
+ $stateProvider.
+ state("<%= module_name %>", {
+ url: "/<%= directory_name %><%= module_name %>/",
+ templateUrl: template_url("<%= directory_name %><%= module_name %>/index"),
controller: "<%= module_name.camelize %>Controller"
});
}]);