ui-router bootstrap modal deep-linking? -


parenta.bootstrapmodal , parentb.bootstrapmodal loading same modalcontroller. modalcontroller gets data modalfactory. all child states identical. yuck!

here's have today:

$stateprovider.state(     'parenta',     {         url: '/parenta',         template: '<p>parent <ui-view /></p>',         controller: ['modalfactory', function(modalfactory) {             ...do stuff , store in factory         }]     } ).state(     'parenta.bootstrapmodal',     {         url: '/bootstrapmodal',         template: '<span>child modal</span>',         controller: 'modalcontroller' <------- duplicate route     } ).state(     'parentb',     {         url: '/parentb',         template: '<span>parent b</span>',         controller: ['modalfactory', function(modalfactory) {             ...do stuff , store in parent b factory         }]     } ).state(     'parentb.bootstrapmodal',     {         url: '/bootstrapmodal',         template: '<span>child b modal</span>',         controller: 'modalcontroller' <------- duplicate route     } ); 

how can have one bootstrapmodal app navigates while remembering previous state scroll-bar position, boxes checked, , other ui elements? help! want persist in previous route can click button , still there.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -