I am setting up a select list From Year and To Year through ng-repeat and its working fine what I need is when I select an option from the list it should be disabled from another list. how to do using Angularjs?
Thank You.
HTML
<li>
<select class="form-control">
<option value="" selected disabled>From Year</option>
<option ng-repeat="option in selectedYear" >{{option.years}}</option>
</select>
</li>
<li>
<select class="form-control">
<option value="" selected disabled>To Year</option>
<option ng-repeat="option in selectedYear" >{{option.years}}</option>
</select>
</li>
JSON
{"json1":"[{\"years\":2018},{\"years\":2017},{\"years\":2016},{\"years\":2015}]