Skip to content

Instantly share code, notes, and snippets.

@theAlgorithmist
Created February 27, 2020 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theAlgorithmist/9b8927c0772edaa416b6164262c564ef to your computer and use it in GitHub Desktop.
Save theAlgorithmist/9b8927c0772edaa416b6164262c564ef to your computer and use it in GitHub Desktop.
.
.
.
this._expirationMonth = new FormControl(months[this._curMonth].value, Validators.required);
this._expirationYear = new FormControl(this._userSelectedYear, Validators.required);
this._cvv = new FormControl('', Validators.required);
this._expirationMonth.disable();
this._expirationYear.disable();
this._cvv.disable();
this.ccSubGroup = new FormGroup({
ccNumber : new FormControl('', Validators.required),
expirationMonth: this._expirationMonth,
expirationYear : this._expirationYear,
cvv : this._cvv,
});
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment