enter response - revaturelabs/ask-frontend GitHub Wiki

HTML

Enter Response component is used for the expert to enter a response to a question that an Associate has posed.

md-editor is used to create the input capabilities for the response to be written.

TS

@Output()

newResponse: Response event emitter
updatedResponse: Response event emitter

@Input()

isEdit: Boolean
response: Response (manually set default variables)

Variables

private options: new Markdownoptions
public mode: String 'editor' questionId: nubmer;

Constructor

private responseService: ResponseService
questionService: QuestionService
authService: AuthService
_snackBar: MatSnackBar
router: Router

ngOnInit()

questionId: QuestionService.getQuestionId()

Functions

addResponse(body): Saves the response that has been entered within the page using the ResponseService.saveResponse(). All notifications to the end user utilizes the MatSnackBar.

updateResponse(): Intended to update the response. Currently unused functionality.

⚠️ **GitHub.com Fallback** ⚠️