funky-framadate-front/src/app/features/participation/poll/poll.component.ts

19 lines
507 B
TypeScript
Raw Normal View History

2020-05-01 19:10:17 +02:00
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Poll } from '../../../core/models/poll.model';
import { PollService } from '../../../core/services/poll.service';
@Component({
selector: 'app-poll',
templateUrl: './poll.component.html',
styleUrls: ['./poll.component.scss'],
})
export class PollComponent implements OnInit {
2020-05-05 18:17:12 +02:00
public _poll: Observable<Poll> = this.pollService.poll;
2020-05-01 19:10:17 +02:00
2020-05-05 18:17:12 +02:00
constructor(private pollService: PollService) {}
2020-05-01 19:10:17 +02:00
2020-05-05 18:17:12 +02:00
ngOnInit(): void {}
2020-05-01 19:10:17 +02:00
}