Last active
June 4, 2019 07:18
-
-
Save jonathanwoahn/10b9906b147b8f7e92579128b607a72a 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 *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