Created
April 25, 2017 09:20
-
-
Save iCoolchar/2e847365fc07bf1cb07668caaa085348 to your computer and use it in GitHub Desktop.
angular delete on row and take effect at once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var idx = $scope.adverts.indexOf(adv); | |
if (idx > -1) { | |
$scope.adverts.splice(idx, 1); | |
} | |
notify("删除成功!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment