2021-04-30 14:15:21 +02:00
|
|
|
import { Component, Input, OnInit } from '@angular/core';
|
|
|
|
import { PollService } from '../../../core/services/poll.service';
|
|
|
|
import { Poll } from '../../../core/models/poll.model';
|
2021-04-30 16:12:02 +02:00
|
|
|
import { environment } from 'src/environments/environment';
|
2020-12-16 17:21:01 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-success',
|
|
|
|
templateUrl: './success.component.html',
|
|
|
|
styleUrls: ['./success.component.scss'],
|
|
|
|
})
|
2021-04-30 23:33:56 +02:00
|
|
|
export class SuccessComponent {
|
2021-04-30 14:15:21 +02:00
|
|
|
@Input() poll: Poll;
|
|
|
|
mailToRecieve: string;
|
2021-04-30 16:00:22 +02:00
|
|
|
window: any = window;
|
2021-04-30 16:12:02 +02:00
|
|
|
environment = environment;
|
2021-04-30 14:15:21 +02:00
|
|
|
|
2021-04-30 23:33:56 +02:00
|
|
|
constructor(public pollService: PollService) {}
|
2021-04-30 14:15:21 +02:00
|
|
|
|
|
|
|
sendToEmail() {
|
|
|
|
alert('todo');
|
|
|
|
}
|
2020-12-16 17:21:01 +01:00
|
|
|
}
|