useQuestion
This page describes the zoovuFacade of @zoovu/exd-api 0.x, a legacy library. New projects start from application themes.
useQuestion to get question properties by answer id
@Component()
export default class ExampleComponent extends Mixins(ZoovuFacadeMixin) {
@Prop()
public questionId: number;
get questionText(): string {
const question = this.zoovuFacade.useQuestion(this.questionId);
return question.text;
}
}