Angular UI State name causing '$stateNotFound` error -
So I used to have my AngularUI state views cordless by using the following code
$ stateProvider State ('dash.landing', {url: '/', templateUrl: '/partials/backup/dash/landing.html', Controller: 'Landing Controller'}) .state ('dash.order', {url: / 'Overview', template url: '/ particle / backup / dig / order / index html', controller: 'order controller'}) .state ('dash.order.overview', {url: '/ overview', templateUrl : '/partials/backup/dash/order/overview.html', Controller: 'Overview Controller'}) .state ('dash.order.email-accounts', {url:' / email-accounts ', TemplateUrl:' / partials / backup / dash / order / email-accounts.html '}) .state (' dash.order.alerts ', {url:' / alerts ', templateUrl:' / partials / backup / dash /order/alerts.html '}); And for some reasons my thoughts were not being translated and I was getting $ stateNotFound error, I could not tell it to be Dash.landing . After 15 minutes of pulling my hair, I simply changed dash.landing to dash and suddenly it worked perfectly! Can anyone please explain why I can not use dash.landing for the root route state name?
Yes, the dot to apply the relationship of parent / child between UI-router ideas Uses Notation You can use dot notation from the default root provider in named routes. You can also use the dot nation for the application module name, so that other developers know that an organizational hierarchy is in place.
Comments
Post a Comment