View Question - revaturelabs/ask-frontend GitHub Wiki

The view-question component acts as the parent component to the Question Component and the Response Component. It displays the question component, the number of responses, and then a response component for each response attached to the question. For experts viewing the page, it also features the enter-response component.

Each Question Component and Response Component is instantiated for each individual question and response retrieved from the server. The selected question and relevant responses are populated within the View Question Component via the Question Service, which utilizes a setter function to set the question ID within the Preview Question Component, and then employs a getter function to supply the selected question within our Question Component and Response Component.

HTML

TS

@Output()

@Input()

Variables

Constructor

Functions