I am new to angular ui routing . I am creating a sample application and want to display parent and child view separately . I mean when parent item gets selected child view will be displayed and parent view would be hidden . If I add ui-view
to parent view it just renders the child view their but I want parent view to be completely replaced . So Can anyone please help me on this .
So here I want to achieve , when parent item gets selected child will replace content.
I'd suggest you to change structure of your HTML that will have
ui-view="content"
so we need to setcontent
view from theviews
option of state.Markup
Then you state would be change
content
ofui-view
using@
relative routingConfig
Demo Plunkr