dimanche 4 mars 2018

Retrieving selected option angularJS with ng-repeat

I'm traying to retrieve the selected option from the HTML view with AngularJS, but I do not find the way since all the solutions I have seen take into account the parameter "value", but I do not have it here because I do not know the content of the option list beforehand.

Here is the HTML code:

<h5>Satellite selection</h5>
<div>
<select  id="selectedSatellite">

    <option ng-repeat="sat in passes">
        
    </option>

</select>
</div>

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire