Ich habe ui-view
in index.html und ich habe eine Seite für Informationen und dort möchte ich zweite Ui-View mit 4 Links setzen.Angular UI-Router Ui-View in Ui-View
In meiner index.html
<body ng-app="myApp">
<div ui-view></div>
</body>
Das ist meine Information. Ich möchte Standard in info.html eine Seite info-Nummer.html öffnen.
<div class="col-sm-8" style="border:1px solid; min-height:
<h1>Some text</h1>
<div ui-sref></div>
</div>
Dies ist meine App.
myApp.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/home');
$stateProvider
.state("home", {
url: "/home",
templateUrl: "home.html"
})
.state("info", {
url: "/info",
templateUrl: "info.html",
})
.state("info-number", {
abstract: true,
parent: "info",
url: "/info-number",
templateUrl: "info-number.html"
})
.state("info-about", {
parent: "info",
url: "/info-about",
templateUrl: "info-about.html"
})
.state("info-where", {
parent: "info",
url: "/info-where",
templateUrl: "info-where.html"
})
}
]);
Schema meiner Seite für Informationen
Vielen Dank für Hilfe.
Hallo Maxim tnx für Antwort, es funktioniert! – mrkibzk