So legen Sie die Standardseite in Angular @ fe

Ich erhalte eine Fehlermeldung, wenn ich den Link mit dieser URL anfordere:http://xxx:46630/ oder mit diesemhttp://crmbyzaid.azurewebsites.net/

Aber es funktioniert gut, wenn ich @ hinzufüg'/index.html' mit URL. Jetzt möchte ich das Standard-Rendering meiner Teilseite "app / dashboard / dashboard.html" festlegen, wenn ich mit nur @ anforderhttp://crmbyzaid.azurewebsites.net/

Mein Code von config-route.js ist

function routeConfigurator($routeProvider, routes) {

    routes.forEach(function (r) {
        $routeProvider.when(r.url, r.config);
    });
    $routeProvider.otherwise({ redirectTo: '/' });
}
function getRoutes() {
    return [
        {
            url: '/',
            config: {
                templateUrl: 'app/dashboard/dashboard.html',
                title: 'dashboard',
                settings: {
                    nav: 1,
                    content: '<i class="fa fa-dashboard"></i> Dashboard'
                }
            }
        }, {
            url: '/admin',
            config: {
                title: 'admin',
                templateUrl: 'app/admin/admin.html',
                settings: {
                    nav: 1,
                    content: '<i class="fa fa-lock"></i> Admin'
                }
            }
        }
]
}

Antworten auf die Frage(1)

Ihre Antwort auf die Frage