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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -