towr
towr

Reputation: 4167

Using angular-ui-router can I have multiple states simultaneously?

What I'm trying to accomplish is showing the user a page-creation wizard in a lightbox/modal without the underlying page disappearing just because I'm moving from the page state to the wizard state; I want to have both.

The underlying page can have any number of underlying states, and the wizard should be accessible in each, so it's not really practical to add the wizard states as children to all page states. So conceptually I'd like to have combined states like (page.comment, wizard.step1). Is something like that possible with angular-ui-router?

Upvotes: 1

Views: 537

Answers (2)

dhwang
dhwang

Reputation: 55

A state with different sub views are different states and thats what the previous answer meant, but you don't need a state to have multiple components/controller on the same state/view. For example, instead of trying to control the wizard with state, you could simply use state parameters.

Upvotes: 1

Miraage
Miraage

Reputation: 3464

As I know AngularUI Router could provide multiple views.
Did you read Wiki? There is tons of useful information.

https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views

Upvotes: 1

Related Questions