如何让AngularJS ui路由器与fullPage.js一起工作?
我正在创建一个完整的网页滚动应用程序。我有这样的东西可以欣赏如何让AngularJS ui路由器与fullPage.js一起工作?,angularjs,angular-ui-router,fullpage.js,Angularjs,Angular Ui Router,Fullpage.js,我正在创建一个完整的网页滚动应用程序。我有这样的东西可以欣赏 <div class="section">Section 1</div> <div class="section">Section 2</div> <div class="section">Section 3</div> 我希望我的路线如下所示: .state('home', { url: '/', tem
<div class="section">Section 1</div>
<div class="section">Section 2</div>
<div class="section">Section 3</div>
我希望我的路线如下所示:
.state('home', {
url: '/',
templateProvider: function($templateCache) {
return $templateCache.get('partials/home.html');
}
})
.state('section1', {//code}),
.state('section2', {//code}),
.state('section3', {//code});
我的URL格式为:www.example.com#section1、www.example.com#section2等。
如何让用户每次滚动到不同的分区时更改路由?看看@ppollono,我做了,但它只使用了一条路由,就像我现在做的一样。
.state('home', {
url: '/',
templateProvider: function($templateCache) {
return $templateCache.get('partials/home.html');
}
})
.state('section1', {//code}),
.state('section2', {//code}),
.state('section3', {//code});