Help me to binding file name into image selector from database


#1

this my component ts
private imageUrl:string = ‘https://location/storage/’;
image:string = ‘default.jpg’; // i got from value of rest api

how to binding data into image selector use nativescript angular?
<Image src="how this"></Image>


#2

Use property binding, <Image [src]="imageUrl + image"></Image>, imageUrl must be public here.