Ng-List-8

 

Ng-List-8

 
 
 
<!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> <p>Enter Your Favourite colours name with comma seprated.</p><textarea ng-model="colours" ng-list ng-trim="true"></textarea><br /> </div> <h4>This is the list of your favourite colours.</h4> <ol> <li ng-repeat="colour in colours">{{colour}}</li> </ol> </body> </html>
Output