Angular function does not load in time?

Asked

Viewed 44 times

3

When I try to use the following code in a website template:

<img src="{{getImage(estabelecimento)}}">

The image loads correctly, but before loading this error appears on the console:

GET http://localhost:8080/%7B%7BgetImage(establishment)%7D%7D 404 (Not Found)

Everything leads me to believe that the HTML tags are being loaded and executed before the angular directives, causing the text of the tag that calls the function to appear in the HTML code for a few milliseconds.

Is there any way to fix this?

1 answer

5


  • That’s exactly what it was, thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.