enter response - revaturelabs/ask-frontend GitHub Wiki
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.
newResponse
: Response event emitter
updatedResponse
: Response event emitter
isEdit
: Boolean
response
: Response (manually set default variables)
private options
: new Markdownoptions
public mode
: String 'editor'
questionId
: nubmer;
private responseService
: ResponseService
questionService
: QuestionService
authService
: AuthService
_snackBar
: MatSnackBar
router
: Router
questionId
: QuestionService.getQuestionId()
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.