thinkmind
thinkmind

Reputation: 115

Checkbox inside image in ng-repeat

Hi guys is there a way to put the checkbox inside the image?. Currently it is still on the left side of the image. Thank you.

HTML:

 <div ng-repeat="x in xt">

                <input type="checkbox" ng-checked="x.is_valid" ng-model="xlist.isChecked[x.id]"/>
                <img src="{{x.picture}} " onerror="this.src='/images/default_pic.jpg'" ><br>
  </div>

Upvotes: 0

Views: 1020

Answers (1)

Shehryar Abbasi
Shehryar Abbasi

Reputation: 378

similar question asked here: How can I display the checkbox over the images for selection?
where the answer uses css with the correct positioning.

GL!

Upvotes: 1

Related Questions