Express routing conflicting with AngularJS routing.-Collection of common programming errors
I was able to find the solution from here: AngularJS and ExpressJS routing conflicts. Basically, in the angular routing file, the templateURL
needs to be pre-pended with a ‘/’. For e.g, in my angular routing code, I had to change
$routeProvider.when('/routeName', {
templateUrl: 'view1.html',
controller:'rcontroller'
});
to
$routeProvider.when('/routeName', {
templateUrl: '/view1.html',
controller:'rcontroller'
});