I'm trying to bind a ng-model this way:
<md-list-item ng-repeat="reply in replies">
<md-input-container flex style="margin-top:-7px;" ng-show="replyLink">
<label>Your reply ...</label>
<input ng-model="replyMsg" ng-enter="addReply(reply.id)">
</md-input-container>
</md-list-item>
From the other side:
$scope.replyMsg...
Using this, when I change the value of one ng-model and log the content of replyMsg, I get undefined as output message. How do I fix that?
I've tried to make it ng-model="replyMsg{{$index}}", but, I wasn't able to find out how to deal with this model name in the other side using $scope.
Any brilliant suggestion?