16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
import { Poll } from '../models/poll.model';
|
|
import { ApiService } from './api.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class CommentService {
|
|
constructor(private apiService: ApiService) {}
|
|
|
|
public saveComment(poll: Poll, comment: string): void {
|
|
this.apiService.saveComment(poll, comment);
|
|
}
|
|
}
|