ui-router-extras
ui-router-extras copied to clipboard
hyperlink not working
created a link of future state ; lets say : #/some2
when i give this url to someone else it doesn't work because future states were not loaded with $http; and thus moves to .otherwise route in ui-router.
How do i avoid this problem of redirecting it back to default route
doesn't work because future states were not loaded with $http,, any suggestions ?
Sorry I didn't respond sooner.
Future states should be intercepting the .otherwise()
call and checking if the URL /some2
matches any of the pending future states.
Here's how it does it: https://github.com/christopherthielen/ui-router-extras/blob/master/src/future.js#L181-L184
Can you provide additional information about your problem?
nice ! will try it out