Angular JS滚动到下一个问题

时间:2019-03-04 07:56:42

标签: javascript angularjs scroll

由于页面中显示的项目更改,我试图获得滚动效果。这是我正在调用的功能的代码片段:

---- HTML ----

<a title="Avanti" style="float:left">
<img src="arrow-right.gif" ng-click="bookGoNext()" class="arr">
</a>

---- all.js -------

$scope.bookGoNext = function(){
      if( ( (navigator.connection && navigator.connection.type != "none") || navigator.onLine ) || !$rootScope.readOnline ){
          if($scope.bookInfo.nextId != 0){
            $rootScope.getNewPublicationIndex = false;
            $state.go($state.current.name, {idBook : $scope.bookInfo.pubId, idPar : $scope.bookInfo.nextId});
          }
      }
      else{
        $scope.openNoConnectionModal();
      }
    }

任何建议将不胜感激。谢谢!

0 个答案:

没有答案