Let's say I have twitter-like website populated with messages. There is a feature that you can add comments to messages.
So, I iterate over each message and display a comment form:
<div class="" ng-repeat="msg in messages">
<span>message: {{msg.message}}</span>
<span>date {{msg.date}}</span>
<form ng-submit="">
<input type="text" ng-model="commentForm.comment">
<button type="submit" value="send">
</form>
</div>
The problem is that when I type comment under one message it's being displayed over all inputs, that's not the behavior I want.
- Disabling with disabled="true" other input fields doesn't help.
Here is the code: plnkr