import {Component, OnInit} from '@angular/core'; import {BaseComponent} from '../base-page/base.component'; import {HttpClient} from '@angular/common/http'; import {ConfigService} from "../../services/config.service"; import {MessageService} from 'primeng/api'; @Component({ selector: 'framadate-end-confirmation', templateUrl: './end-confirmation.component.html', styleUrls: ['./end-confirmation.component.scss'] }) export class EndConfirmationComponent extends BaseComponent implements OnInit { mailToRecieve = ''; constructor(public config: ConfigService, public http: HttpClient, private messageService: MessageService ) { super(config); this.mailToRecieve = this.config.myEmail; } ngOnInit() { } copyLink(str: any) { this.messageService.add({severity: 'success', summary: 'Service Message', detail: 'Via MessageService'}); } sendToEmail() { } }