Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app='TestApp'>
  <div id='Parent' ng-controller='ParentController'>
    <h1>People:</h1>
    <ul>
      <li ng-repeat='person in people'>
        <span class='name' ng-bind='person.name'></span>
        (<span class='age' ng-bind='person.age'></span>)
      </li>
    </ul>
    <br/>
    <h1>Edit People:</h1>
    <ul>
      <li ng-repeat='person in people track by $index' ng-controller='EditPersonController'>
        <form name='personForm' novalidate>
          <label>Name:</label>
          <input type='text' ng-model='personCopy.name' required />
          <label>Age:</label>
          <input type='number' step='1' ng-model='personCopy.age' style='width:40px' />
      </li>
    </ul>
  </div>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers