angularjs - Bootstrap modal dialog and Angular binding not working -
I'm just trying to set up a warning dialogue, and I'm trying to model the bootstrap for beginners.
Bootstrap model:
Model fire but it does not show my modalTitle and modalBody value!
HTML snippet here (note vm.modalTitle and vm.modalBody scope vars) -
and my control code:
vm.modalTitle = ''; My controller vm.modalBody = 'Vars launched on top of'; ... function sendRequest () {if (data.status == 'FAIL') {if (data.messages.length & gt; 0) {log error ("Error submitting aggregation request:" + data. [ 0]); Vm.modalTitle = "Error submitting aggregation query!"; Vm.modalBody = Data. Message [0]; $ ('# MyModal') Model ('Toggle') $ ('# MyModal') ('Hide.bs.modal', function (e) {// removed when model is hidden from user}) Return; }}} Modal fire but it does not show my modalTitle and modalBody value!
I tried this route when I first learned kangaroo and very quickly they were disappointed with hacks There were those who had to do me to work. Your best bet is to use the Angulai model, it's very well bootstrap modal wraps.
Comments
Post a Comment