ticketfrei3/kibicara-frontend/src/app/platforms/telegram/telegram-settings/telegram-settings.component.ts
2020-08-28 13:25:51 +02:00

20 lines
589 B
TypeScript

import { Component, OnInit, Input } from '@angular/core';
import { TelegramService } from 'src/app/core/api';
import { Observer, Observable } from 'rxjs';
@Component({
selector: 'app-telegram-settings',
templateUrl: './telegram-settings.component.html',
styleUrls: ['./telegram-settings.component.scss'],
})
export class TelegramSettingsComponent implements OnInit {
@Input() hoodId;
telegrams$: Observable<Array<any>>;
constructor(private telegramService: TelegramService) {}
ngOnInit(): void {
this.telegrams$ = this.telegramService.getTelegrams(this.hoodId);
}
}