Rotem B
Rotem B

Reputation: 1377

force $state.reload with a start from state

I have the following states: 'home.person','home.person.house'

I'm in 'home.person.house' and want to hard reload state stating from 'home.person'. According to https://github.com/angular-ui/ui-router/pull/1809, I can pass as a parameter the start state from which the reload will start. So, I have the following line:

$state.reload('home.person');

However, the reload doesn't occur even thought everything in ui-route seems to work fine (debugged it). The resolve function of state 'home.person' wasn't called. Are there any suggestions why I'm not getting the result I wish for?

Upvotes: 1

Views: 1039

Answers (1)

Shoaib Khan
Shoaib Khan

Reputation: 88

You can try using this : $state.go("home.person",{reload:true}); It would be good if you could share the parent and child state codes. It's difficult to provide a solution without much reference.

Upvotes: 1

Related Questions