Ashley John
Ashley John

Reputation: 2453

Modal window binding data -Angularjs

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

Upvotes: 0

Views: 80

Answers (1)

tabalin
tabalin

Reputation: 2313

Use following binding instead:

<textarea class="form-control" rows="3" ng-model="$parent.currentcommitment"></textarea>

Upvotes: 1

Related Questions