Skip to content

Instantly share code, notes, and snippets.

Created March 31, 2021 22:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
daily component
import { Component, OnInit } from '@angular/core';
import { Task } from '@app/shared/interfaces';
import { Observable } from 'rxjs';
import { AppFacadeService } from '@app/app-lib';
templateUrl: './daily.component.html',
styleUrls: ['./daily.component.scss'],
export class DailyComponent implements OnInit {
tasks$: Observable<Task[]>;
categories$: Observable<string[]>;
constructor(private appFacadeService: AppFacadeService) {
ngOnInit(): void {
this.tasks$ = this.appFacadeService.dailyTasks$;
this.categories$ = this.appFacadeService.dailyCategories$;
tasksTrackBy(task: Task, idx) {
onDelete(task: Task) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment