I am trying to configure angular routing using $routeProivder
So I have
$routeProvider
.when('/title', {
templateUrl: 'views/title.html',
})
.when('/title/article-name', {
templateUrl: 'views/article-name.html',
})
However, with $locationProvider.html5Mode(true), It will find the page template but every links image js css file will not be found, therefore my layout is screwed ( My header and footer are in my index.html, template is rendering from ng-view ). Also when I click on the links it shows "Cannot get /title/article-name/sample.js"
My question is how do I do multi level routing with angular.
so like "www.domain.com/why-us/our-company/our-goal" something like that. Thanks