ich bin französisch, sorry für mein schlechtes EnglischAngularJS Routing ui routeur
ich ein Problem mit ui Routing bekam:
Fehler: ungültiger Zustand ref ‚({Sport: dataSettings.sport, championnat: dataSettings .championnat}) equipes'
Mein app.js
betotopApp.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/football/ligue1/equipes');
$stateProvider
.state('equipes', {
url: '/:sport/:championnat/equipes',
templateUrl : 'library/views/equipes.html',
controller : 'equipesCtrl',
abstract: true
})
.state('calendrier', {
url: '/:sport/:championnat/calendrier',
templateUrl : 'library/views/calendrier.html',
controller : 'calendrierCtrl',
abstract: true
})
.state('matchs', {
url: '/:sport/:championnat/matchs',
templateUrl : 'library/views/matchs.html',
controller : 'matchsCtrl',
abstract: true
})
.state('classement', {
url: '/:sport/:championnat/classement',
templateUrl : 'library/views/classement.html',
controller : 'classementCtrl',
abstract: true
})
.state('statistiques', {
url: '/:sport/:championnat/statistiques',
templateUrl : 'library/views/statistiques.html',
controller : 'statistiquesCtrl',
abstract: true
});
});
und meine index.html
<a ui-sref="({ sport: dataSettings.sport, championnat: dataSettings.championnat })equipes" class="c"><i class="fa fa-users" aria-hidden="true"></i> Equipes</a>
Vielen Dank für Hilfe
Sie sollten dies als Kommentar anstelle einer Antwort setzen –