2

My HTML syntax has embedded AngularJS model properties, such as this:

<img class="media-object" src="[[[post.creative.author.selfie]]]" alt>

Although the app does work as expected, opening the page with the dev tools shows that the browser first tries to fetch the resources with this literal syntax, and thus the console is full of errors such as this one:

http://localhost:3000/[[[comment.author.selfie]]] 404 (Not Found)

I have looked at the AngularJS documentation but have not been able to find a way to prevent the browser from trying to download these resources before the Angular app is loaded.

Any help on how to avoid these 404 errors will be very appreciated.

1 Answer 1

3

Try using ng-src istead of src.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.