0

When I use $state.go in a child of a given parent to move to another child state of that same parent, the controller associated with the parent seems to always reload, is there any way to avoid this behavior, only triggering the controller of the newly selected child state?

2
  • By default, when navigating from parent.child1 to parent.child2 - parent is not reloaded. That's the default. Check if you did not change that behaviour (e.g. with reload : true setting) Commented Aug 19, 2015 at 9:55
  • What I'm doing is: $state.go('^.' + childName, params, {location: false}); Commented Aug 19, 2015 at 10:03

1 Answer 1

1

Ok turns out reloading was happening because I was supplying a parameter of the parent in addition to parameters for the children.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.