dustinspecker/generator-ng-poly

View on GitHub
lib/app/templates/_app-routes.js

Summary

Maintainability
A
0 mins
Test Coverage
(function () {
  'use strict';

  angular
    .module('<%= moduleName %>')
    .config(config);

  function config(<% if (ngRoute) { %>$routeProvider<% } else { %>$urlRouterProvider<% } %>) {
    <% if (ngRoute) { %>$routeProvider.otherwise({
      redirectTo: '/home'
    });<% } else { %>$urlRouterProvider.otherwise('/home');<% } %>
  }
}());