I have a button with the [disabled] attribute which checks a public field on the module. It starts out disabled. I want it to instantly get enabled when validity checks on the form have passed. By using console.log to see when the validity checks have passed, I can tell that there is a lag of up to 3 seconds between when the button should be enabled and when it actually does get enabled. Any idea why this might be?
Can you provide a demo of this? Having used [disabled]
before, I have not noticed any lag
My issue turned out to be the issue described here. TL;DR is to use NgZone.run when you are having other services/libraries emit events that should change your local component’s model.