Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(ivy): fixes in the TodoMVC example #23161

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/core/test/bundling/todo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AppState {
// but NgForOf expects creation and binding separate.
template: `
<div>
<input type="checkbox" [value]="todo && todo.done" (click)="onCheckboxClick()">&ngsp;
<input type="checkbox" [checked]="todo && todo.done" (change)="onCheckboxClick()">&ngsp;
<span [class.done]="todo && todo.done">{{todo && todo.text}}</span>&ngsp;
<button (click)="onArchiveClick()">archive</button>
</div>
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -108,4 +108,4 @@ export class ToDoAppModule {
renderComponent(ToDoAppComponent, {
// TODO(misko): This should run without injector.
injector: createInjector(ToDoAppModule)
});
});