Ionic tab state question

Hi.

I’m wondering something. First lets look at the first state:

.state('tab.dash', {
	url: '/dash',
	views: {
		'tab-dash': {
			templateUrl: 'templates/tab-dash.html',
			controller: 'DashCtrl'
		}
	}
})

If I were to change this to:

.state('tab.dash', {
	url: '/dash',
	views: {
		'tab-dash-2': {  // <-- note the only change
			templateUrl: 'templates/tab-dash.html',
			controller: 'DashCtrl'
		}
	}
})

This fails to load. Why is that?

yeah beause your ion-nav-view should has the same name like the view?

somewhere in your template you need a ion-nav-view with the name ‘tab-dash’. If you change only the view-name in the state-definition… there is nothing to hang into your ion-nav-view tab-dash

Right. Late night, detail slipped me. Take a breath, stand back, get some air. Brute force it later.