I am working on Angular checkbox and need to read value either given ng-true-value
/ ng-false-value
or boolean value not sure what I am missing from code. I am reading event but not sure which value to read??
template
<div>
<input
type="checkbox"
name="questionAnswerState"
ng-model="check"
ng-true-value = "answerProvided"
ng-false-value="questionAnswerNotProvided"
(change)="isAnswerProvided($event, check)"
/> Answer Provided?
component
isAnswerProvided(event: any, check:any)
{
console.log("question answer not provided responseId:: ",this.responseId, " questionId::",this.questionId, " check::", check );
console.log(event);
}