I am using Ternary Conditional Operator in my angular project, but when I am trying to pass HTML tag inside condition I am getting an error, how to resolve it, Code -
{{!status.available ? 'Inactive' : 'Active'}}
this code is working fine but when I try to pass -
{{!status.available ? '<span>Inactive</span>' : 'Active'}}
Getting this error on client side - {{!status.available ? '' : 'Active'}} I want to display - Inactive/active only