Open pranavkaushik9 opened 8 years ago
When I create first (default) viewport as named, the ng-link translates to path "."
If I change this viewport to unnamed, it works fine and creates correct href via ng-link i.e. "./dashboard"
See sample at git URL: https://github.com/pranav-xx/new-router-demo If I change make following changes it works fine:
index.html from: <div ng-viewport="mydefault"></div> to: <div ng-viewport></div>
<div ng-viewport="mydefault"></div>
<div ng-viewport></div>
and in app.js from : $router.config([ { "path": "/dashboard", "components": { "mydefault":"dashboard", "urdefault":"pipeline" } } ]);
$router.config([ { "path": "/dashboard", "components": { "mydefault":"dashboard", "urdefault":"pipeline" } } ]);
to: $router.config([ { "path": "/dashboard", "components": { "default":"dashboard", "urdefault":"pipeline" } } ]);
$router.config([ { "path": "/dashboard", "components": { "default":"dashboard", "urdefault":"pipeline" } } ]);
When I create first (default) viewport as named, the ng-link translates to path "."
If I change this viewport to unnamed, it works fine and creates correct href via ng-link i.e. "./dashboard"
See sample at git URL: https://github.com/pranav-xx/new-router-demo If I change make following changes it works fine:
index.html from:
<div ng-viewport="mydefault"></div>
to:<div ng-viewport></div>
and in app.js from :
$router.config([ { "path": "/dashboard", "components": { "mydefault":"dashboard", "urdefault":"pipeline" } } ]);
to:
$router.config([ { "path": "/dashboard", "components": { "default":"dashboard", "urdefault":"pipeline" } } ]);