Created
May 5, 2016 21:43
-
-
Save SimonDoy/e029df9aac7815003679bc15c306d3bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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