angularjs - Angular: URL with multiple states -


i'd know whether possible angular 1.x or not.

the constraint have application compatible mobile , desktop. on each page of application, there ui-view displays usual content, eg.

<div ui-view flex></div> 

but desktop browsers, there ui-view additional content (it benefits larger width), eg.

<div ui-view="desktop-only" hide show-gt-sm></div> 

my question is: when url entered, possible open different state in each ui-view? (currently, desktop ui-view fixed) maybe defining specific routes ui-view?

i made work using:

https://github.com/angular-ui/ui-router/wiki/multiple-named-views

for each state, can handle multiple named views, each view being related controller.


Comments