angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

Getting data from modal, Not Working. #1756

Closed jay-gandhi closed 7 years ago

jay-gandhi commented 8 years ago
<div class="modal-header">
  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</button>
  <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>
</div>
<div class="modal-body">
  <p ng-if="modal.text" ng-bind="modal.text"></p>
  <div ng-if="modal.html" ng-bind-html="modal.html"></div>
  <div><input type="text" class="form-control" ng-bind="modal.comment" required="required"></div>
</div>
<div class="modal-footer">
  <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>
</div>
changeStatusModal.result.then(function(event) {
              console.log( ?? );
            });

How to get value of input field from Modal into this result.then ?

Item Version
generator-angular-fullstack Newest
Node 5.9.0
npm 3.7.3
Operating System Ubuntu 14
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ui-router
Build Tool Grunt
Client Tests Mocha
DB MongoDB & MySQL
Auth Y
Awk34 commented 7 years ago

Closed due to inactivity