Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed model property "content" to "title"

  • Loading branch information...
commit 62fa615f2ae2854f3f62abca8d14a205780248e3 1 parent 68f57e1
@cburgdorf cburgdorf authored
View
4 architecture-examples/angularjs/index.html
@@ -22,11 +22,11 @@
<li ng:repeat="todo in todos" my:dblclick="editTodo(todo)" ng:class="(todo.done && ' done ') + (todo.editing && ' editing ')">
<div class="view">
<input class="toggle" type="checkbox" name="todo.done">
- <label>{{ todo.content }}</label>
+ <label>{{ todo.title }}</label>
<a class="destroy" ng:click="removeTodo(todo)"></a>
</div>
<form ng:submit="finishEditing(todo)">
- <input class="edit" type="text" name="todo.content" my:focus="todo.editing" my:blur="finishEditing(todo)">
+ <input class="edit" type="text" name="todo.title" my:focus="todo.editing" my:blur="finishEditing(todo)">
</form>
</li>
</ul>
View
4 architecture-examples/angularjs/js/controllers.js
@@ -9,7 +9,7 @@ App.Controllers.TodoController = function () {
if (self.newTodo.trim().length === 0) return;
self.todos.push({
- content: self.newTodo,
+ title: self.newTodo,
done: false,
editing: false
});
@@ -25,7 +25,7 @@ App.Controllers.TodoController = function () {
};
self.finishEditing = function(todo) {
- if (todo.content.trim().length === 0){
+ if (todo.title.trim().length === 0){
self.removeTodo(todo);
}
else{
Please sign in to comment.
Something went wrong with that request. Please try again.