Skip to content

Instantly share code, notes, and snippets.

@SimonDoy
Created May 5, 2016 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SimonDoy/e029df9aac7815003679bc15c306d3bc to your computer and use it in GitHub Desktop.
Save SimonDoy/e029df9aac7815003679bc15c306d3bc to your computer and use it in GitHub Desktop.
'use strict';
var invoiceFormApp = angular.module('itspInvoiceFormApp',
[
'ngRoute', 'invoiceControllersModule'
]);
var appStart = function($routeProvider) {
$routeProvider.when('/invoices', {
templateUrl:'/app/views/list-invoices.html',
controller: 'listInvoicesController'
}).otherwise({
redirectTo: '/invoices'
});
};
invoiceFormApp.config(['$routeProvider', appStart]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment