moff / angular2-ladda

Angular 2 Ladda module
MIT License
97 stars 20 forks source link

[attr.disabled] is not working #20

Closed AlexDaSoul closed 7 years ago

AlexDaSoul commented 7 years ago

Hi!

<button type="button" (click)="save()" [attr.disabled]="form.invalid" [ladda]="submitted>Save</button>

ladda removes attr.disabled

theodorejb commented 7 years ago

It should work if you bind to the [disabled] property instead of the attribute.