Im haben 2 <router-outlet>
und alles ist in Ordnung, das ist mein RouteConfig
in der Profilkomponente:kippe Gebrauch [Router] innerhalb der Komponente
mein Problem ist, wenn ich will [Router] innerhalb der credit
Komponente throw ein Fehler: "Kredit" hat keine Route-Konfiguration. in [null]
und das ist meine credit
Komponente:
import {ROUTER_DIRECTIVES,RouteConfig} from 'angular2/router';
@Component({
selector : "credit",
templateUrl : "client/tmpl/profile/credit.html",
directives: [ROUTER_DIRECTIVES]
})
Vorlage:
<ul>
<li><a [routerLink]="['Profile' , 'Home']" href="#">home</a> </li>
</ul>
warum ich RouteConfig innerhalb credit
Komponente verwenden soll und wie nutzen?
Vielen Dank –
das ist Arbeit für me.thanks ein schauen Menge –