-1

I'm loading some states from a JSON file, all states get loaded and become available ,but when reloading or searching the URL in other browser window, I can't access anymore the dynamic states ( I get redirected to default page), It seems to be the execution flow; When page redirect, the JSON is not loaded because is loaded after the index.

Any Idea about solve this issue?

Radim Köhler
  • 122,561
  • 47
  • 239
  • 335

1 Answers1

0

Solution could be found here (with detailed descriptions):

the point is a feature:

$urlRouterProvider.deferIntercept(defer)

Disables (or enables) deferring location change interception.

If you wish to customize the behavior of syncing the URL (for example, if you wish to defer a transition but maintain the current URL), call this method at configuration time. Then, at run time, call $urlRouter.listen() after you have configured your own $locationChangeSuccess event handler.

Community
  • 1
  • 1
Radim Köhler
  • 122,561
  • 47
  • 239
  • 335