19 lines
507 B
TypeScript
19 lines
507 B
TypeScript
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 {
|
|
public _poll: Observable<Poll> = this.pollService.poll;
|
|
|
|
constructor(private pollService: PollService) {}
|
|
|
|
ngOnInit(): void {}
|
|
}
|