libs/feedback/src/lib/feedback-issue-dropdown/feedback-issue-dropdown.component.ts
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { GithubService } from '@codelab/utils';
@Component({
selector: 'feedback-issue-dropdown',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './feedback-issue-dropdown.component.html',
styleUrls: ['./feedback-issue-dropdown.component.scss']
})
export class FeedbackIssueDropdownComponent {
@Input() message: object;
constructor(private ghService: GithubService) {}
createIssue() {
this.ghService.createIssue(this.message);
}
createClosedIssue(reason) {
this.ghService.createClosedIssue(this.message, reason);
}
}