I want a button to be disabled until a checkbox has been checked using a FormBuilder for Angular. I don\'t want to explicitly check the value of the checkbox and would prefe
I have this really simple example:
In your component:
login : FormGroup; constructor(@Inject(FormBuilder)formBuilder : FormBuilder) { this.login = formBuilder.group({userName: [null], password: [null], staySignedIn: [false,Validators.pattern('true')]}); }
In your HTML:
bla bla bla?