2016-11-10 6 views
0

ここでは、ブートストラップと一緒にAngularJsコードを使用しています。次のコードを実行する前に数秒間Modalを停止します。しばらくの間、ブートストラップ・モーダルを停止する方法

xxer.then(function (msg) { 
        if ($scope.msg = "Your A/c Activated ....") { 
         $scope.msg = msg.data; 
         $timeout(function() { 
          $('#modal2').modal('show') 

         },4000) 
            $window.location.href = '/Account/Inbox'; 

$ window.location.href = '/ Account/Inbox'を実行する前に。このコードは、私は罠が4秒それは他の方法でなければなりませんどのようにすることができます私は

答えて

1

helpmeしてください、それを停止するには、

xxer.then(function (msg) { 
if ($scope.msg = "Your A/c Activated ....") { 
    $scope.msg = msg.data; 
    $('#modal2').modal('show') 
    $timeout(function() { 
    $window.location.href = '/Account/Inbox'; 
},4000) 
+0

は –

+0

@MDGhouse http://jsfiddle.net/1ptm607v/207/洙ずっとありがとう – Sajeetharan

関連する問題