Ng-List-7

 

Ng-list directive display the textbox text in json format.Textbox value bind to listvariable which will display the text. It will trim the value of input.

 
 
 
<!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>Type names.</p><input type="text" ng-model="list" ng-list=" " ng-trim="true"><br /> <pre>{{list|json}}</pre> </div> </body> </html>
Output