useQuestion
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;
}
}