How to prevent redirecting in Angular Js1.2

后端 未结 9 2056
情歌与酒
情歌与酒 2020-12-24 02:09

I was using AngularJs-1.0.7 and Bootstrap in my application. Recently I migrated from AngularJs-1.0.7 to AngularJs-1.2. I am using Bootstrap\'s Accordions and Tabs.

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-24 02:44

    If you don't success with previous answers, you could try use $timeout... In this case I have used AngularUI tabs...

    vm.removeUserTab = function (user) {
        $timeout(function () {
            vm.activeTab = 0;
            var index = vm.userTabs.indexOf(user);
            vm.userTabs.splice(index, 1);
        });
    };
    

提交回复
热议问题