funky-framadate-front/src/app/core/components/home/home.component.ts

19 lines
606 B
TypeScript

import { Component } from '@angular/core';
import { environment } from '../../../../environments/environment';
import { StorageService } from '../../services/storage.service';
import { ApiService } from '../../services/api.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
})
export class HomeComponent {
public environment = environment;
constructor(public storageService: StorageService, private api: ApiService) {}
searchMyPolls() {
this.api.sendEmailToUserOfItsPollsList(this.storageService.vote_stack.owner.email);
}
}