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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -