Answer the question
In order to leave comments, you need to log in
Angularjs && ui-router - how to implement transition between parentPage and childPage without reload?
Good afternoon! I have a problem with the implementation of this question. There are 3 pages, their routing is:
1) page home - start page
.state('home', {
url: '/',
views: {
page: {
templateUrl: function() {
return startPath + '/home/page.html';
},
controller: 'homePage'
}
}
})
.state('profiles', {
url: 'profiles?city',
reloadOnSearch: false,
params: {
city: null
},
views: {
page: {
controller: 'profilesPage',
templateUrl: function () {
return startPath + '/profiles/page.html';
}
}
}
})
.state('profile', {
url: '/profiles/:profileId',
reloadOnSearch: false,
//parent: 'profiles',
views: {
page: {
controller: 'profilePage',
templateUrl: function() {
return startPath + '/profile/page.html';
}
}
}
})
$locationProvider.html5Mode(true);
<div ui-view="page"></div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question