How to redirect using AngularJS datatable button? -


i trying redirect 1 page using angularjs data table button. calling function contains redirect url. function being called redirection not working. using $location.path redirect. doing in right way or there other ways redirect using data table button ?

   .withbuttons([    {         text: 'next page',         key: '1',         action: function (e, dt, node, config)              {                $scope.redirect();             }     }]);      $scope.redirect=function()      {        $location.path('/next_page');     }; 


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -