Questions tagged [angularjs-templates]

AngularJS templates are crafted using HTML that includes unique Angular elements and attributes. When combined with data from the model and controller, Angular creates a dynamic view for users to interact with in their browser. Keep in mind that this feature is only available for angular version 1.x; for versions 2.x and higher, consider using the angular2-template tag instead.

Show the value in the input text field if the variable is present, or else show the placeholder text

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}}&a ...