How to passing vars to an Angular ui-modal template -
i tried out lot of, doesn't works. code runs not show vars "title" , "text" in modal.
this code:
// in controller: $confirm({title: "error", text: "test"}, { templateurl: "alertmodal") .then(function() { });
<!-- template --> <script type="text/ng-template" id="alertmodal"> <div class="modal-header"> <h3 class="modal-title">title: {{title}}</h3> </div> <div class="modal-body"> text: {{text}} </div> <div class="modal-footer"> <button class="btn btn-warning" type="button" data-ng-click="cancel()">cancel</button> </div> </script>
the model triggered xml-request, want use service.
Comments
Post a Comment