How to disable a button on a condition?

Because of this, which is why your next post solved the problem. You were inadvertently always interpolating a truthy string. That being said, dear future reader: please do not emulate the previous post. Direct DOM access in an Angular app should be kept to situations where there is no other option, and this is not one of those.