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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -