I'm having two HTML files -> index.html and start.html
So far I was developing an app(a small application) in a single dimensional thought where index.html serves as the main page and app-route serves as the main router for the application. Now we're creating a bigger application like a .com site and integrating the previous application with the this(.com).
We do not want to disturb the smaller application code and we're developing a .com site which is a different html(start.html) and a different router (dot-com-route.js). Now, whenever I try to load http://localhost/myApp/app/#/start.html, its loading the index.html with app-route.js?
Is it always like, angular application looks for index.html file to execute?
This is my app-route.js:
smartPrintApp.config(['$routeProvider','$locationProvider',
function($routeProvider, $locationProvider) {
$routeProvider.
when('/', {
templateUrl: 'pages/smart_print_landing/smart-print-landing.html'
}).
when('/index.html', {
templateUrl: 'pages/smart_print_landing/smart-print-landing.html'
})
}
]);
when('/')) it usesindex.html. Can you post your JS code?