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
Post a Comment