How may I add disabled to an input if a condition is met?
What I have today:
<input class="previous" [attr.disabled] = "active === 1 ? 'disabled' : ''">
But this adds disabled="disabled" and I want only disabled.
So what I need is: <input class="previous" disabled> if the condition is met.
 
    