I have a similar issue. For example I have two different paths to configure some item. The first path is Clients->New Client->Houses->Add house The second path is Houses->Add house->Clients->Choose client. What I will do is to define unrelated state hierarchies: Clients and Houses, and navigate between them dynamically, and use the ui-breadcrumps to show the actual path. We can set dynamically breadcrump parent state.
Cheers, Dragomir събота, 29 ноември 2014 г., 12:35:02 UTC+2, Rajasekhar Vaddeswarapu написа: > > Hi, > we have a requirement like this. we use ui-router > > #/plan-details/unlimited > #/plan-details/unlimited/country-id/10024 > #/plan-details/local/county-id/12322 > #/plan-details/national/country-id/10024/state-id/12322 > #/plan-details/state/state-id/12322/country-id/10024 > > here the url pattern is: > #/plan-details/:planCode/country-id/10024/state-id/12322 > > here some times country-id may present or may not present > and some times state-id may present or may not present. > > We looked at using this > #/plan-details/:planCode/country-id/:countryId/state-id/:stateId > But in our case, countryId is not mandatory and some times URL can be > simply > #/plan-details/:planCode/state-id/:stateId > > > How to configure this in ui-router? > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
