{{customers}}
[Try it Β»](#)
* * *
## Definition and Usage
The **ng-list** directive converts a string into an array, separated by commas.
The **ng-list** directive also works the other way around: if you have an array of strings that you want to display in an input field, you can use the **ng-list** directive on the input.
The `ng-list` attribute value defines the separator.
* * *
## Syntax
The , , Ng Ng List
# AngularJS `ng-list` Directive
[ AngularJS Reference Manual](#)
* * *
## AngularJS Example
Convert user input into an array:
YouTip