{{customers}}
[Try it Β»](#)
* * *
## Definition and Usage
The **ng-list** directive converts a string to an array, using a comma as the separator.
The **ng-list** directive also has another conversion method. If you have an array of strings that you want to display in an input box, 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](#)
* * *
## AngularJS Example
Convert user input to an array:
YouTip