Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic State View

$
0
0

@TJL wrote:

Im having trouble setting ionic state view, need to help to clarify the view/state. If i set it to profile it'll show but in the wrong view(profile view) and if i switch to student it doesn't navigate there. Any help would be greatly appreciate it.

app.js

	.state('tab.student', {
	url: '/student',
	views: {
		'tab-profile': {   <====== here i change to 'student and will not work.
			templateUrl: 'templates/components/student_profile/student-profile.html',
			controller: 'StudentProfileCtrl',
			controllerAs: 'studentCtrl'
		}
	}
});

main.html

<li><a class="item menu-item text-center" menu-close href="#/tab/profile">_Profile</a></li>
<li><a class="item menu-item text-center" menu-close href="#/tab/student">_Student</a></li>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>