Sha256: 53639faa2aac78e472c02171e65b8f0806c58935d0d67b5e86d9981daec903e5
Contents?: true
Size: 941 Bytes
Versions: 3
Compression:
Stored size: 941 Bytes
Contents
// <%= 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 }]);
Version data entries
3 entries across 3 versions & 1 rubygems