How to navigate (browse) between about 50 static Html files located in the assets folder without creating a component or routing entry for each one.
We did it before with angularJS using $stateProvider like this:
$stateProvider
.state('guide.page', {
controller: 'guideController',
controllerAs: 'guideCtrl',
url: '/page/:pageName/:Nav',
templateUrl: function (url) {
return "/userfiles/files/guide/" + url.pageName + ".htm";
},
resolve: {
showNav: function ($stateParams) {
return $stateParams.Nav;
}
}
})
where pageName sent as a parameter in the link to the static page like this:
<a ui-sref="guide.page({pageName:'003'})">link to static page no 003</a>
How can we do it using angular?. Where we are using angular ver. 5.1 with angular-cli ver. 1.5.