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
Post a Comment