i'm loading states json file, states loaded , become available ,but when reloading or searching url in other browser window, can't access anymore dynamic states ( redirected default page), seems execution flow; when page redirect, json not loaded because loaded after index.
any idea solve issue?
solution found here (with detailed descriptions):
- start angular.js route-segment or ui-router after translations loaded
- angularjs - ui-router - how configure dynamic views
the point feature:
$urlrouterprovider.deferintercept(defer)
disables (or enables) deferring location change interception.
if wish customize behavior of syncing url (for example, if wish defer transition maintain current url), call method @ configuration time. then, @ run time, call
$urlrouter.listen()after have configured own$locationchangesuccessevent handler.
Comments
Post a Comment