javascript - How do I concatenate two variables as my ng-src? -
i have variable controller has link, , picture ng-repeat.
vm.data.piclink = 'https://s3-ap-southeast-1.amazonaws.com/felda/'; // in controler //in html <div ng-repeat =" picturename in category.category_name_image" > <image type="image" ng-src= "category.data.piclink" + "picturename.picture[0].filename" style="width:100%" /> //picturename.picture[0].filename = u_backpack.png </div>
im not sure how combine 2 become 1 whole link. want result come out this: https//3-ap-southeast-1.amazonaws.com/felda/u_backpack.png
ng-src="{{category.data.piclink + picturename.picture[0].filename}}"
Comments
Post a Comment