javascript - Angular JS-Reload Dynamic States -


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):

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 $locationchangesuccess event handler.


Comments