angularjs - How to convert a child state to parent state or vice versa dynamically based on screen width? -




i have kind of situation need nest child state when screen size desktop , convert child state parent state when screen mobile.

desktop

<div ui-view="parent">  <div ui-view="child"></div> </div> 

mobile

<div ui-view="child"></div> 

what best way that? i'm thinking of creating separate state desktop , mobile same controller , template , navigate state based on screen width





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -