ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

controllers and child states

Open bealtine opened this issue 11 years ago • 1 comments

I think I'm misunderstanding the ideas here. I'm trying to understand why the controller in the child state doesn't run here, it's in most of the docs it's shown as the "right" way so I must be doing something wrong...

This is a "chopped" to bits demo http://plnkr.co/edit/cE9fs86yxUFRpCazBE8r?p=preview

I'm sure it's me or my misunderstanding:)

Thanks guys

bealtine avatar Jan 18 '15 12:01 bealtine

I'm answering this only because you provided a plunk (thanks). Normally I would point you to stackoverflow ( http://bit.ly/UIR-SOF ) for help questions

you need another ui-view for your home.index view to go into. Add it on the 'home' state.

              template: '<ui-view/>'

christopherthielen avatar Jan 21 '15 19:01 christopherthielen