Skip to content

Instantly share code, notes, and snippets.

@jonathanwoahn
Created June 4, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanwoahn/c54339f62a59fa7f702d5c371647ac9b to your computer and use it in GitHub Desktop.
Save jonathanwoahn/c54339f62a59fa7f702d5c371647ac9b to your computer and use it in GitHub Desktop.
<div fxLayout="row" fxLayoutAlign="center center">
<div fxLayout="column" fxFlex="60%">
<mat-card>
<mat-card-title>
My Easy NGRX Todo List
</mat-card-title>
<mat-card-content fxLayout="column">
<mat-form-field>
<input matInput placeholder="Add New Todo" #todoInput (keyup)="addTodo($event)">
</mat-form-field>
</mat-card-content>
</mat-card>
<mat-card>
<mat-card-title>
Todos
</mat-card-title>
<mat-action-list>
<button mat-list-item (click)="removeTodo(todo)" *ngFor="let todo of todos; let i = index;">
{{i + 1}}. {{todo.text}}
</button>
</mat-action-list>
</mat-card>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment