2017-02-06 4 views
0

Ich habe eckige App und es funktioniert gut auf lokale, aber wenn ich beschlossen, online in Verzeichnis wie example.com/app/production/, wenn zum Beispiel ich versuche, Login-Seite wie example.com/app/production/#/login öffnen, leitet es mich um zu example.com/#/login, was kann ich mit diesem Problem tun?eckig: Routen weiterleiten an Root-Verzeichnis Problem

hier ist meine Winkel Route Set-up

app.config(function ($routeProvider, $locationProvider) { 
    // It's like constructor, it will run on the beginning of the app 

    $routeProvider.when('/', { 
     templateUrl: 'dashboard/dashboard.view.html', 
     controller: 'dashboardCtrl' 
    }) 
    .when('/onboarding', { 
     templateUrl: 'onboarding/onboarding.view.html', 
     controller: 'onboardingCtrl' 
    }) 
    .when('/login', { 
     templateUrl: 'login/login.view.html', 
     controller: 'loginCtrl' 
    }) 
    .when('/queryList', { 
     templateUrl: 'queryList/queryList.view.html', 
     controller: 'queryListCtrl' 
    }) 
    .when('/company', { 
     templateUrl: 'company/companySettings.view.html', 
     controller: 'companyCtrl' 
    }) 
    .when('/dashboard', { 
     templateUrl: 'dashboard/dashboard.view.html', 
     controller: 'dashboardCtrl' 
    }) 
}); 
+0

@Satpal Ich verstehe nicht, was Sie –

Antwort

Verwandte Themen