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