Skip to content

Instantly share code, notes, and snippets.

@jonathanwoahn
Last active June 4, 2019 07:18
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/10b9906b147b8f7e92579128b607a72a to your computer and use it in GitHub Desktop.
Save jonathanwoahn/10b9906b147b8f7e92579128b607a72a 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 *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