Having hardly found the documentation on this, but in Angular 1 you can do:
<textarea ng-model="name" ng-list=","></textarea>
Then at the entrance, if you were to enter "Hello world!". name
will be an array ["Hello", "world!"]
.
My goal is to use ng-list
with an HTML object
to split a string textarea
into a string into an array. See an example from the documentation .
Is there an equivalent to this in Angular 2?
source share