Guest User

Untitled

a guest
Oct 16th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <button ng-click="Delete(list.Id)"><i class="fa fa-remove"></i></button>
  2.  
  3. $http.post('/Companies/Delete', { model: mod })
  4. .then(function (result) {
  5. if (result.data == true)
  6. $scope.CompaniesList.splice(index, 1);
  7. //$scope.$apply();
  8. showtoastNotification('Deleted !', 'Company deleted from database', 'info');
  9. //$scope.cancel();
  10. //loadCurrentPage();
  11. }, function () {
  12. showtoastNotification('Error !', 'Something went wrong please try again later', 'error');
  13. })
Add Comment
Please, Sign In to add comment