Blame view

common/controller/controller.js 478 Bytes
cf8b0fb9   Nung Poti   template master
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

var host = 'http://localhost:3000';
angular.module("myApp", ['ngRoute','Customer','Item'])
    .config(['$routeProvider', function ($routeProvider) {
        $routeProvider
        .when('/Customer', {
         templateUrl: './views/customer.html',
         controller: 'CtrlCustomer'
         })
        .when('/item', {
         templateUrl: './views/item.html',
         controller: 'CtrlItem'
         })
         .otherwise({
         redirectTo: '/'
         });
    }]);