Can someone tell me why the data in the scope is not getting passed to the controller.
Click on the Open Me . Add some text inside the modal window .Click Ok. why empty items are getting added?
see this Plunker
Can someone tell me why the data in the scope is not getting passed to the controller.
Click on the Open Me . Add some text inside the modal window .Click Ok. why empty items are getting added?
see this Plunker
Use following binding instead:
<textarea class="form-control" rows="3" ng-model="$parent.currentcommitment"></textarea>