Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding parent state view from child state view in angularjs, best practices?

'update-approved-product-campaign-ad' this is the child state of 'product-campaigns.product-campaign-detail' when i call child state through ui-sref parent state view gets called along with child state view which i don't want. I want only child state view.

like image 286
Giridhar Kumar Avatar asked Jun 16 '15 19:06

Giridhar Kumar


1 Answers

i solved this issue by wrapping the parent view with <div ui-view="">

This will override the ui-view with the child when navigating to a child state, otherwise it will contain the patent state's view.

like image 196
Jacer Omri Avatar answered Nov 15 '22 08:11

Jacer Omri