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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -