ionic framework - Working with Ui-Router-Extras -


i have ionic/angularjs/ui-router app has couple of intro/onboarding screens leads home page accordion list of items. if expand (for example) item 7 in list(on home page) , click on sub item in list, navigate me details page. when return home page, list not expanded anymore. mentioned there add-on called ui-router-extras save state of ui when navigating back. i've added code i'm having trouble applying app seeing examples ui-router-extras have apps using tabs.

i result accordion list still expanded when navigate home view/page (home.list).

my states following

 .state('welcome', {        url: '/welcome',        templateurl: 'welcome.html',        controller: 'welcomectrl'   })  .state('home', {        abstract: true,        url: '/home',      templateurl:'homeparent.html'  })  .state('home.list', {      url:'/list' ,        views: {             'list@home': {                 templateurl: 'list.html',                 controller: 'listctrl',           }         },       deepstateredirect: true,       sticky: true  })  .state('detail', {        url: '/detail',        templateurl: 'detail.html',        controller: 'detailctrl',  }); 

here's code pen http://codepen.io/markace1246/pen/bpziv

i'm not sure i'm doing wrong.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -