<script src= "/js/angular.js1.4.6/angular.min.js"></script>
<body ng-app="myApp" ng-controller="todoCtrl">
<form ng-submit="todoAdd()">
<input type="text" ng-model="todoInput" size="50" placeholder="新增">
<input type="submit" value="新增">
<div ng-repeat="x in todoList">
<input type="checkbox" ng-model="x.done"> <span ng-bind="x.todoText"></span>
<p><button ng-click="remove()">删除记录</button></p>
var app = angular.module('myApp', []);
app.controller('todoCtrl', function($scope) {
$scope.todoList = [{todoText:'Clean House', done:false}];