ionic-framework: bug: Controller executing twice - nested states.
Type: <span ionic-type>bug</span>
Platform: <span ionic-platform>all</span>
<span ionic-description>Nested states with parameters and tabs execute the controller twice.
How to reproduce:
The first state manages the tabs
.state('tabs', {
url: "/tab/:projectID",
cache: false,
templateUrl: "tabs.html",
controller: "TabsCtrl as vm",
resolve: {
project: function($stateParams, Projects) {
return Projects.get($stateParams.projectID);
}
}
})
.state('tabs.tab1', {
url: "/tab1",
views: {
'tabs-tab1': {
templateUrl: "tab1.html",
controller: 'Tab1Ctrl as vm'
}
}
})
the seconds loads the specific tabs in the tab list.
Plunker here.
Question asked on StackOverflow. </span>
<span is-issue-template></span>
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16
+1