You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
![]()
3 years ago
|
import { Injectable } from '@angular/core';
|
||
|
import { ApiService } from './api.service';
|
||
|
|
||
|
@Injectable({
|
||
3 years ago
|
providedIn: 'root',
|
||
![]()
3 years ago
|
})
|
||
|
export class VoteService {
|
||
3 years ago
|
constructor(private apiService: ApiService) {}
|
||
![]()
3 years ago
|
|
||
3 years ago
|
public saveVote(vote: any): void {
|
||
|
this.apiService.saveVote(vote);
|
||
|
}
|
||
![]()
3 years ago
|
|
||
3 years ago
|
public updateVote(vote: any): void {
|
||
|
this.apiService.updateVote(vote);
|
||
|
}
|
||
![]()
3 years ago
|
}
|