framadate-responsive/src/app/pages/create-or-retrieve/create-or-retrieve.component.ts

27 lines
780 B
TypeScript
Raw Normal View History

import {Component, OnInit} from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
2019-12-03 17:20:57 +01:00
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 {
2019-12-03 17:20:57 +01:00
constructor(public config: ConfigService,
public pollService: PollService) {
super(config);
}
ngOnInit() {
2019-12-03 17:20:57 +01:00
this.findMyPollsByEmail('tktest@tktest.com')
}
findMyPollsByEmail(email: string) {
2019-12-03 17:20:57 +01:00
this.config.findPollsByEmail(email);
}
}