ho iniziato a testare il nuovo v1.0.0alpha0 ui-router con AngularJS v1.4.0 ma sto ottenendo questo errore:ui-router v1.0.0alpha0 - TypeError: Impossibile leggere la proprietà 'creationContext' undefined
TypeError: Cannot read property 'creationContext' of undefined
at http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:1573:65
at curried (http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:128:24)
at http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:130:21
at Array.filter (native)
at matchingConfigPair (http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:1587:48)
at Array.map (native)
at $View.sync (http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:1597:53)
at $View.register [as registerUiView] (http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:1605:15)
at http://localhost:1828/lib/angular-ui-router/release/angular-ui-router.js:3741:37
at invokeLinkFn (http://localhost:1828/lib/angular/angular.js:8604:9) <!-- uiView: subjects.intro -->
Ecco il mio app.config:
var home = {
name: 'home',
template: '<div data-ui-view></div>',
url: '/home/'
};
var homeSubjects = {
name: 'home.subjects',
resolve: {
getSubjects: ['subjectService',
(sus: ISubjectService) => {
console.log("getSubjects");
sus.getSubjects();
return true;
}]
},
url: 'subjects',
views: {
'': {
templateUrl: 'app/subjects/partials/subjects.html',
},
'[email protected]': {
templateUrl: 'app/subjects/partials/subjects_intro.html',
},
'[email protected]': {
templateUrl: 'app/subjects/partials/subjects_auth.html',
}
}
};
qualcuno ha idea di cosa potrebbe essere la causa di questo problema o come posso procedere per saperne di più circa il problema che non ho avuto nella 0.2 versione del router?
Grazie
Grazie esaminerò questo e aggiornerò i miei risultati. –
@Marilou qualche feedback su questo? – koox00
Ci scusiamo per il ritardo nella risposta. Cercando di sistemare molti bug :-) Penso che ora sia tutto a posto. Proverò alcune cose diverse e posta un'altra domanda se ancora un problema. Grazie –