-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
25 lines (22 loc) · 864 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var myApp = angular.module('mainApp', ['ngRoute']);
myApp.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/', {
templateUrl: './template/home.html',
controller: 'invoiceController'
});
$routeProvider.when('/add-item', {
templateUrl: './template/add-item.html',
controller: 'AddStockController'
});
$routeProvider.when('/add-new-item', {
templateUrl: './template/add-new-item.html'
});
$routeProvider.when('/table', {
templateUrl: './template/table.html'
});
$routeProvider.when('/invoice', {
templateUrl: './template/invoice.html'
});
$routeProvider.otherwise({redirectTo: '/'});
}
]);