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: '/' }); }]);