useAnswer
useAnswer
to get answer properties by answer id
@Component()
export default class ExampleComponent extends Mixins(ZoovuFacadeMixin) {
get answerText(): string {
const question = this.zoovuFacade.firstQuestionFromCurrentPage();
const answerId = question.answerIds[0] ?? "";
const answer = this.zoovuFacade.useAnswer(answerId);
return answer.text;
}
}