Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何让AngularJS ui路由器与fullPage.js一起工作?_Angularjs_Angular Ui Router_Fullpage.js - Fatal编程技术网

如何让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});