YouTip LogoYouTip

Ng Ng List

# AngularJS `ng-list` Directive [![Image 3: AngularJS Reference Manual](#) AngularJS Reference Manual](#) * * * ## AngularJS Example Convert user input into an array:
{{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 , ,