diff --git a/packages/core/test/bundling/todo/index.ts b/packages/core/test/bundling/todo/index.ts index ab325079f94..f4a49d992e0 100644 --- a/packages/core/test/bundling/todo/index.ts +++ b/packages/core/test/bundling/todo/index.ts @@ -33,7 +33,7 @@ export class AppState { // but NgForOf expects creation and binding separate. template: `
- &ngsp; + &ngsp; {{todo && todo.text}}&ngsp;
@@ -71,7 +71,7 @@ export class ToDoAppComponent { onArchive(item: ToDo) { const todos = this.appState.todos; - todos.splice(todos.indexOf(item)); + todos.splice(todos.indexOf(item), 1); markDirty(this); } } @@ -108,4 +108,4 @@ export class ToDoAppModule { renderComponent(ToDoAppComponent, { // TODO(misko): This should run without injector. injector: createInjector(ToDoAppModule) -}); \ No newline at end of file +});