Bash
angular.module('sam').config(function($routeProvider){
$routeProvider.when('/main/customer',{
templateUrl:"customer.html",
controller:"customerController"
})
.when('/main/client',{
templateUrl:"client.html",
controller:"clientController"
});
});the above line kept it as separate file called app.js, Here I use ASP.NET MVC as backend, so from index.cshtml I did like below
Code
Customer
ClientI am experiencing an issue with above coding. But in angular ngRoute the second / looks for routeParams???that's why I'm getting error??
Can anyone help me in this.


suraj ghosi30 reputationPosted May 6, 2015, 3:43 AM EDT
then your route work fine please try this
Srinivasan K KRank #1,664 · 919 reputationPosted Jul 9, 2015, 7:54 PM EDT