Created
June 4, 2019 16:31
-
-
Save jonathanwoahn/7e5ef938a69c42ecae9febce384526cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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$ | async; 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