import {Component, OnInit} from '@angular/core'; import {BaseComponent} from "../base-page/base.component"; import {ConfigService} from "../../services/config.service"; import {PollService} from "../../services/poll.service"; @Component({ selector: 'framadate-create-or-retrieve', templateUrl: './create-or-retrieve.component.html', styleUrls: ['./create-or-retrieve.component.scss'] }) export class CreateOrRetrieveComponent extends BaseComponent implements OnInit { constructor(public config: ConfigService, public pollService: PollService) { super(config); } ngOnInit() { this.findMyPollsByEmail('tktest@tktest.com') } findMyPollsByEmail(email: string) { this.config.findPollsByEmail(email); } }