Created
June 4, 2019 07:29
-
-
Save jonathanwoahn/c54339f62a59fa7f702d5c371647ac9b 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; 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