Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created December 24, 2019 13:59
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 lydemann/000810e1bce9feb2d9b07851b14fc091 to your computer and use it in GitHub Desktop.
Save lydemann/000810e1bce9feb2d9b07851b14fc091 to your computer and use it in GitHub Desktop.
todo-list.component.html
<ng-container *ngIf="!(isLoading$ | async); else loadingRef">
<div class="todo-list-wrapper" *ngIf="todoList$ | async as todoList">
<div class="mx-auto col-10">
<h5>{{ 'todo-list' | translate }}</h5>
<hr />
<app-cards-list
[tableRef]="todoListRef"
[cardRef]="todoItemCardRef"
[data]="todoList"
></app-cards-list>
<hr />
<div>
{{ 'todo-list-section.todos-duedate-today' | translate }}:
{{ todoList | duedateTodayCount }}
</div>
<hr />
<app-add-todo [currentTODO]="selectedTodo$ | async"></app-add-todo>
</div>
</div>
</ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment