Commit 940e94a2 authored by Pascal Hartig's avatar Pascal Hartig

Merge pull request #650 from passy/angular-trimming

AngularJS Item Trimming / Angular 1.2 Upgrade
parents ff1734d8 d087ddce
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
"name": "todomvc-angular", "name": "todomvc-angular",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"angular": "~1.0.7", "angular": "~1.2.0",
"todomvc-common": "~0.1.4" "todomvc-common": "~0.1.4"
}, },
"devDependencies": { "devDependencies": {
"angular-mocks": "~1.0.5" "angular-mocks": "~1.2.0"
} }
} }
This diff is collapsed.
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)"> <input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label> <label for="toggle-all">Mark all as complete</label>
<ul id="todo-list"> <ul id="todo-list">
<li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}"> <li ng-repeat="todo in todos track by $index | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
<div class="view"> <div class="view">
<input class="toggle" type="checkbox" ng-model="todo.completed"> <input class="toggle" type="checkbox" ng-model="todo.completed">
<label ng-dblclick="editTodo(todo)">{{todo.title}}</label> <label ng-dblclick="editTodo(todo)">{{todo.title}}</label>
<button class="destroy" ng-click="removeTodo(todo)"></button> <button class="destroy" ng-click="removeTodo(todo)"></button>
</div> </div>
<form ng-submit="doneEditing(todo)"> <form ng-submit="doneEditing(todo)">
<input class="edit" ng-model="todo.title" todo-escape="revertEditing(todo)" todo-blur="doneEditing(todo)" todo-focus="todo == editedTodo"> <input class="edit" ng-trim="false" ng-model="todo.title" todo-escape="revertEditing(todo)" todo-blur="doneEditing(todo)" todo-focus="todo == editedTodo">
</form> </form>
</li> </li>
</ul> </ul>
......
...@@ -9,6 +9,8 @@ files = [ ...@@ -9,6 +9,8 @@ files = [
'test/unit/**/*.js' 'test/unit/**/*.js'
]; ];
autoWatch = true; autoWatch = false;
browsers = ['Chrome']; singleRun = true;
browsers = ['Chrome', 'Firefox'];
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"karma": "~0.8.5" "karma": "~0.8.5"
}, },
"scripts": { "scripts": {
"test": "karma start config/testacular.conf.js" "test": "karma start config/karma.conf.js"
}, },
"dependencies": {} "dependencies": {}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment