Using AngularJS it was possible displaying images like this:
ng-src="public/img/{{item.image}}"
Where {{item.image}} is stored in MongoDB.
My question therefore is pretty straightforward... How would I achieve the same thing in Angular 4?
Something like this:
<img src = "public/img/{{item.image}}">
Or alternatively as Pankaj pointed out:
<img [src] = "'public/img/' + item.image">
There is a chapter in the Angular docs that map AngularJS features to Angular features that may be helpful:
[src]="'public/img/'+item.image"?