You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
844 B
34 lines
844 B
import { Component, OnInit } from '@angular/core'; |
|
import { BaseComponent } from '../example/base-page/base.component'; |
|
import { ConfigService } from '../../services/config.service'; |
|
|
|
@Component({ |
|
selector: 'app-create-or-retrieve', |
|
templateUrl: './create-or-retrieve.component.html', |
|
styleUrls: ['./create-or-retrieve.component.scss'], |
|
}) |
|
export class CreateOrRetrieveComponent extends BaseComponent implements OnInit { |
|
loadedMyPolls = false; |
|
|
|
constructor(public config: ConfigService) { |
|
super(config); |
|
} |
|
|
|
ngOnInit() { |
|
// if (!environment.production) { |
|
// this.findMyPollsByEmail('tktest@tktest.com') |
|
// } |
|
} |
|
|
|
findMyPollsByEmail(email: string) { |
|
if (!email) { |
|
return; |
|
} |
|
this.config.findPollsByEmail(email); |
|
this.loadedMyPolls = true; |
|
} |
|
|
|
trackFunction(index: number, item: any): number { |
|
return item.id; |
|
} |
|
}
|
|
|