// <%= 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(["$stateProvider", function($stateProvider){ // Configuring application index route. // Add any route you need here. $stateProvider. state("<%= module_name %>", { url: "/<%= directory_name %><%= module_name %>/", templateUrl: template_url("<%= directory_name %><%= module_name %>/index"), controller: "<%= module_name.camelize %>Controller" }); }]); <%= module_name %>.controller("<%= module_name.camelize %>Controller", ["$scope", "gettext", function($scope, gettext){ // <%= module_name.camelize.humanize %> controller of application. This controller is responsible for `/<%= module_name %>` url }]);