Can a boolean variable be linked to the presence of an attribute?
template: ...,
host: {
"[attr.disabled]": "disabled"
}
When rendered in the element, this results in disabled="true" or disabled="false". However, I am looking for a way to utilize it in CSS using the [disabled] selector. I want the attribute to only exist if the variable is true, and not exist if it's false. Thank you in advance.