prevent angular template from being evaluated by browser

opensas

I have a src attribute of and img element which is being filled with an angular template, like this:

<img src="img/data/{{row.image}}" />

And whenever I browse the page I get the following 404 error from the browser:

GET http://localhost:8080/img/data/%7B%7Brow.image%7D%7D 404 (Not Found)

Is there some way to prevent the browser from trying to fetch the image until the template is resolved?

squiroid

Use ng-src

<img ng-src="img/data/{{row.image}}" />

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Prevent false condition from being evaluated

Prevent operations from being prematurely evaluated during pandas method chaining

Will the use of lazy in an F# property prevent the code from being evaluated when it shouldn't?

Prevent http errors from being logged in browser console

Prevent Deeplink from being opened within the browser of the originating app

How to prevent a p:menubar from being overlapped by the contents of a CSS template?

How to prevent a template class from being derived more than once?

Angular2 - Prevent Checkbox from being checked

Angular-RxJs-Testing-Prevent nested catchError from being executed

Prevent Angular $httpProvider interceptor from firing on template loads

Angular 2 prevent enter from submitting in template-driven form

Angular's ng-class is not updating while the value being evaluated is

Is it possible to prevent child components from being created if ng-content is not present in template?

Prevent object from being extended

Prevent Method from being Trimmed

Prevent function from being called

Prevent task from being scheduled

How to avoid map values from being evaluated in a macro?

Browser Not Being Launched From Service

Angular: Prevent additional whitespaces in template

Prevent java from opening a browser

Prevent redirection from the browser bar

Why is the if block being evaluated

Sympy - integral not being evaluated

Why is this variable not being evaluated?

If block not being evaluated in templates

*ngIf not being evaluated

How to prevent Angular form from being sent to a php file (method="post") when invalid?

queryParams in Angular 2 being encoded, how do I prevent this from happening?