I'm attempting to create a textarea who's input is bound to a JS array where entries correspond to each line in the text area.
I've been attempting to use ngList with it's optional parameter to specify the delimiter. I can make it work with the default (,) by adding a comma after each line of the textarea, but I really do not want to require that.
the textarea
<textarea ng-model="list"
rows="5"
ng-list="\n" >
</textarea>
with the input:
test1
test2
test3
The generated output is ["test1\ntest2\ntest3"]
What I am looking for is: ["test1","test2",test3"]
["test1, test2, test3","something new"]jsfiddle.net/ncapito/wKquG/21