Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<head>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
  <meta charset="utf-8">
  <title>AngularJS ngList Example</title>
</head>
<body ng-controller="MyController">
  <h3>ngList directive separator (,) example</h3>
  <input ng-model="fruits" ng-list required><br/>
  <pre> {{fruits}}</pre> 
  <h3>ngList directive separator (-) example</h3>
  <input  ng-model="fruits" ng-list="-"  required><br/>
  <pre> {{fruits}}</pre> 
   <h3>ngList directive separator (-) example</h3>
  <input ng-model="fruits1" ng-list="-" ng-trim='false' required><br/>
 <pre> {{fruits1|json}}</pre> 
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
saan1984pro
0viewers