Skip to content

Instantly share code, notes, and snippets.

@nitayneeman
Last active September 11, 2017 16:02
Show Gist options
  • Save nitayneeman/1fed3d5bde946198154d5abd5ff29500 to your computer and use it in GitHub Desktop.
Save nitayneeman/1fed3d5bde946198154d5abd5ff29500 to your computer and use it in GitHub Desktop.
<ul>
<li *ngFor="let todo of todos; let i = index">
{{ todo }} <button (click)="removeTodo(i)">Remove</button>
</li>
</ul>
<button (click)="addTodo()">Add Todo</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment