Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div ng-controller="MainCtrl">
    <h3>Select a todo</h3>
    <ul>
      <li ng-repeat="todo in todos track by todo.id">
        <a href="javascript:void(0)" ng-click="selectTodo($index)">{{todo.name}}</a>
      </li>
    </ul>
    <form name="myForm">
      <div>
        <label for="name">Name</label>
        <input type="text" name="name" id="name" ng-model="selectedTodo.name">
      </div>
      <div>
        <label for="recur">Recurring</label>
        <select name="recur" id="recur" ng-model="selectedTodo.recur" ng-options="x.value as x.title for x in repeats"></select>
      </div>
    </form>
  </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers