More actions
imported>jereneal20 No edit summary |
(Repair batch-0001 pages from live compare) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 3: | Line 3: | ||
<div ng-app=""> | <div ng-app=""> | ||
{{todos}} | {{todos}} | ||
<h3 ng-init="todos= | <h3 ng-init="todos=[]"> Topic </h3> | ||
<ul> | <ul> | ||
<li ng-repeat="todo in todos" class="done-{{todo.done}}"> | <li ng-repeat="todo in todos" class="done-{{todo.done}}"> | ||
| Line 17: | Line 17: | ||
</div> | </div> | ||
== 역링크 == | |||
http://wiki.zeropage.org/wiki.php/Challengers3/140111 | |||
Latest revision as of 23:56, 26 March 2026
AngularJS
<div ng-app=""> Template:Todos <h3 ng-init="todos=[]"> Topic </h3> <ul> <li ng-repeat="todo in todos" class="done-Template:Todo.done"> <input type="checkbox" ng-model="todo.done"/> Template:Todo.text <button ng-click="todos.splice($index,1)">x</button> </li> </ul> <form ng-submit="test && todos.push({text:test,done:false});test="> <input type="text" ng-model="test"/> <button>Input</button> </form> </div>