0
I am with the following doubt:
If I click on the selector (in the box), I can capture the content of ng-model "firstJogo" and manipulate it in javascript as needed:
<p>Escolha o jogo</p>
<select class="image-picker show-html" ng-model="primeiroJogo">
<option
data-img-src='../public/images/logosmite.jpg'
value="Smite"
class="image-picker"
></option>
<option
data-img-src='../public/images/logohmm.jpg'
value="Heavy Metal Machines"
class="image-picker"
></option>
</select>
But what I need is for it to be possible to capture the content of this ng-model if the user clicks directly on the image. Someone would know me how to do that?
What angle are you drinking?
– Eduardo Vargas
Hello Eduardo, good night. Angularjs v1.7.2
– Codeman