I am developing an angularJS. Here is my code in PHP:
<label class="item item-input item-select">
<div class="input-label">Do you have the right to work in UK?</div>
<select name="do_you_have_the_right_to_work_in_uk" ng-model="do_you_have_the_right_to_work_in_uk">
<option value="">Select</option>
<option value="yes" <?php echo $user->do_you_have_the_right_to_work_in_uk == 'yes' ? 'selected' : ''; ?>>Yes</option>
<option value="no" <?php echo $user->do_you_have_the_right_to_work_in_uk == 'no' ? 'selected' : ''; ?>>No</option>
</select>
</label>
Considering that the variable {{user_data.do_you_have_the_right_to_work_in_uk}} holds 'yes' or 'no'. What would be the equalent of my PHP code in angularJS?