I have a text area that is already bound with a filter, so it'll load with the correct info on page load, but now I want to change a model when the text area is changed, but once I add a model and change event the initial binding stops working.
Here is the HTML as a one way binding, which works:
<textarea>{{mainboard | textboard}}</textarea>
My thinking was that I would add a change event, which errors without a model, so I added a model, like so:
<textarea ng-model="textmainboard" ng-change="updateMainboard()">{{mainboard | textboard}}</textarea>
How can I have a two way binding, with the one way being filtered (the filter in this example is the textboard service)?
EDIT: Here is a js fiddle of me trying to do the blur, which shouldn't require a model: http://jsfiddle.net/vjkgH/
EDIT: The exact use case is I have a list of items. The list of items is displayed as li elements and displayed in a textarea with duplicates shown as "3x itemb". The list of items can be changed in two way, by hitting an add button or by changing the textarea.
Here is an example state:
<ul>
<li>item1</li>
<li>item1</li>
<li>item2</li>
</ul>
<textarea>
2x item1
1x item2
</textarea>