In my app, I have a side menu which is a parent state of ‘profile’ state. I want to make ‘profile’ state a parent state of ‘edit_profile’ state. How can i achieve this?
Thanks
In my app, I have a side menu which is a parent state of ‘profile’ state. I want to make ‘profile’ state a parent state of ‘edit_profile’ state. How can i achieve this?
Thanks
You could do:
.state('edit_profile', {
parent: 'profile'
...
});
I think naming the State ‘sidemenue.profile.edit_profile’ would give the same result, but the parent notation is cleaner.
Here is an overview on how to achieve nested States & Views:
Thanks a lot. It worked.