I have a simple delete button that will accept a string or number but won\'t accept an ng-model variable ( not sure if that\'s the correct terminology ).
<
The ngClick directive binds an expression. It executes Angular code directly (as ngIf, ngChange, etc.) without the need of {{ }}.
{{ }}
angular.module('app', []).controller('MyCtrl', function($scope) { $scope.submission = { id: 100 }; $scope.delete = function(id) { alert(id + " deleted!"); } });
Delete