Hello is there any way to pass two parameters in the output function from child component.
I want to call markQuestion from child component(answer-sheet) with (q_number, value) parameters but it gives me errors.
It works with one parameter.
<answer-sheet *ngIf="current_question" [questions]="questions" [question] = "current_question" [answer_list]="answers"
(markQuestion)="markQuestion($event)">
</answer-sheet>
markQuestion(q_number:number, val:number){
console.log(q_number , "numaralı soru cevap anahtarından ", val, " olarak isaretlendi" );
//this.answers[q_number[0]] = {q_number[1]};
}
export class Answers {
// @Input() question: Object;
@Output() markQuestion = new EventEmitter();
@Input()
answer_list;
public question: Object;
nextQuestionAnsweredButton(q_number,val){
//There is an error at calling next function -> Supplied parameters do not match ..
this.markQuestion.next(q_number,val);
}
}