angularjs - AngualrJS: How to I pass the data to bootstrap modal? -
here plunker - http://plnkr.co/edit/iwvjjcuuruw2avkdarfz?p=preview
i using modal http://mgcrea.github.io/angular-strap/
i want pass transaction-id delete function, how achievable using angularjs?
thank you
on ng-click of modal's delete button:
ng-click="modal.saved=true;delete(transaction.id);hide()" delete function:
$scope.delete = function(id) { alert(id); } working plunkr: http://plnkr.co/edit/lzkajcyiysoz45r56yjl?p=preview
i believe strap inherits current scope pass in transaction id (or pass in entire transaction object) delete function.
Comments
Post a Comment