Answer the question
In order to leave comments, you need to log in
How to rerender an angular component?
Good day to all. Problems with the implementation of the chat.
On @aspnet/signalr + angular 5 client . In ChatService I pass a callback which is called by the OnNewMessage event , the callback essentially converts the data from the server into the required form and adds it to the messages array in the angular component . All messages are successfully added to the array, but the angular is in no hurry to draw them. They get to the page only after interacting with the GUI, whether it's another click on the "send" button (that is, all messages are drawn except the last one), changing the room or changing the value in the input.
Actually the question is the possibility of forced redrawing of the component in angular.
Thank you all in advance :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question