Ng-List-1

 

Ng-list directive display the textbox text in array form seprated by comma.Textbox value bind to list variable which will display the text.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> Name With (,) separate: <input type="text" ng-model="list" ng-list /><br /> <pre>Names:{{list}}</pre> </div> </body> </html>
Output