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.
15 lines
360 B
15 lines
360 B
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); |
|
} |
|
}
|
|
|