WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-list Directive


Example

Convert client contribution to an array:

<div ng-app="">

<input ng-model="customers" ng-list/>

<pre>{{customers}}</pre>
Try it yourself »

Definition and Usage

The ng-list mandate changes over a string into a variety of strings, utilizing a comma as the default separator.

The ng-list order likewise changes over the a different way, have a variety of strings you wish to show in an info field as a string, at that point put the ng-list mandate on the info field.

The estimation of the ng-list quality characterizes the separator.


Syntax

<element ng-list="separator"></element>

Supported by <input> and <textarea> elements.


Parameter Values

Value Description
separator Optional, characterizes the separator, default esteem is ", "