Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Presently I use the following url style with .html extension to start the angular app.

http://localhost:7370/dashboard.html or http://www.subdomain.website.com/dashboard.html

Is there a way to run dashboard.html directly from the root url? ie http://localhost:7370/ or http://subdomain.website.com/ I have added ngRoute configuration, but obviously something else needs to be done.

app.config(function ($routeProvider) {
    $routeProvider.when('/', {
            templateUrl: 'dashboard.html',
            controller: 'dashboardController'
        });
});
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.