在ionic中运行状态更改相同的jquery插件

在ionic中运行状态更改相同的jquery插件,jquery,angularjs,ionic-framework,Jquery,Angularjs,Ionic Framework,我正在使用爱奥尼亚1创建应用程序。有一个“post”页面,我正在运行jquery插件roundSlider 我的代码是 .controller('PostCtrl', function($rootScope,$scope,$http,$state,$ionicHistory,$ionicLoading,$window,$timeout,$ionicSideMenuDelegate,$window,$stateParams) { angular.element("#shape").roun

我正在使用爱奥尼亚1创建应用程序。有一个“post”页面,我正在运行jquery插件roundSlider

我的代码是

.controller('PostCtrl', function($rootScope,$scope,$http,$state,$ionicHistory,$ionicLoading,$window,$timeout,$ionicSideMenuDelegate,$window,$stateParams) {
    angular.element("#shape").roundSlider({             
        sliderType: "min-range",
        handleShape: "round",
        radius:75,
        value: 1,
        handleSize: "+25",
        editableTooltip: false,
        width: 8,
        startAngle: 90,
        min:1,
        max:100,
        endAngle:+440,
        change: function(event) {
            $scope.wheelvalue = event.value;

        }
    });

    $scope.nextPost = function(subjectid){
        $state.transitionTo($state.current, {'post_id': post_id}, {
            reload: true,
            inherit: false,
            notify: true
        });

    }   

})
这里有一个“下一篇文章”链接,点击该用户可以进入下一篇文章,这篇文章与文章id正在更改的页面相同

我尝试了“下一篇文章”的链接


以及链接上的onclick事件

<a  href="javascript:void(0)" ng-click="nextPost ({{next_post_id}})"> next post</a>

但是jquery滑块加载失败。这只是第一次加载,而不是第二次加载

请帮忙


谢谢。

控制台显示了一些错误?不,没有错误。你有什么线索吗?@JoseRojas,你能看到问题吗?你能发布你的jquery插件的链接吗?
<a  href="javascript:void(0)" ng-click="nextPost ({{next_post_id}})"> next post</a>