Is there a ternary operator in Angular 1.2.19 for templates that allows displaying a variable as an input value if it exists, otherwise display the placeholder?
Something like this:
<input type="text "{{ if phoneNumber ? "value='{{phoneNumber}}'" : "placeholder='{{ language.placeHolder}}'"}}
Edit: This is my current HTML:
<input type="text"name="buyPhoneNumber" id="buyPhoneNumber" value="{{ phoneNumber }}"
class="form-control input-lg" placeholder="{{language.phoneNumberHolder}}"
ng-model="buyObj.pinOrPhonenumber"
ng-change="buyChange();"
on-change-phone-number/>