I
I
Igor Astakhov2017-10-25 18:09:47
Angular
Igor Astakhov, 2017-10-25 18:09:47

Angular 1.x Why is the model received via XMLHttpRequest() not rendering?

Hello. Faced such feature; when using XMLHttpRequest(), the data from the onload function does not get into the view until some event is executed on the page.
Example 1.
after calling the rest service through the standard $http module, the model is filled in and immediately rendered on the page
. Example 2.
The same, but through XMLHttpRequest(). If you open the console, you will see that the response from the service has come, but nothing has been rendered on the page. When you hover the mouse over a block with a tooltip, an event occurs (a message pops up) and the model is drawn on the view.
I hope someone knows how to win this? =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Ptolemy_master, 2017-10-25
@mytoffnax

Try like this ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question