M
M
Maxim2018-03-12 14:21:16
Angular
Maxim, 2018-03-12 14:21:16

Angular image display?

Hello.
There is a site written in Angular that accepts data from the WordPress Rest Api.
I'm trying to load a post picture with a table of contents on the page, but for some reason, when the page is loaded, the picture does not display, what could be the problem.
There is an example on the test site HERE
4 lines, because already tried to send requests using different methods
. Here's what you can see in devTools

First site load
5aa66236b0132571161994.png
When refreshing the page when the pictures are visible
5aa6623f4b5f6425166496.png
When refreshing the page, when the picture is not visible, it shows only the table of contents
5aa662468e6ad022288773.png

In DevTools, if you add a style display: none;to a picture, then the picture appears. If I add display to style.css then the problem remains

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question