Skip to content

Instantly share code, notes, and snippets.

@SimonDoy

SimonDoy/app.js

Created May 5, 2016
Embed
What would you like to do?
'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