angular.module('sam').config(function($routeProvider){ $routeProvider.when('/main/customer',{ templateUrl:"customer.html", controller:"customerController" }) .when('/main/client',{ templateUrl:"client.html", controller:"clientController" });});
<a href="/main/customer">Customer</a><a href="/main/client">Client</a>