angularjs - How to stop bootstrap modal for some time -


here i'm using angularjs code along bootstrap here want stop modal few seconds before execute next code.

 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'; 

before execute $window.location.href = '/account/inbox'; code wana stop 4sec please helpme how can i

it should other way,

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) 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -