I want to display a button depending on the result of ternary operator in Angular JS, but I am not able to display the HTML content inside the curly braces, it only allows the string form. Below is my code.
{{x.status === "pending" ? "pending" : "Card is Already Verified"}}
<ons-button ng-click="setCard(x); page.pushPage('verifyCard.html', {animation: 'slide'});">Verify <ons-icon icon="ion-checkmark"></ons-button>
If the status is pending, I want to display the ons-button in pending field.