added some validation to splash

This commit is contained in:
Ben Wilson
2023-06-26 18:19:38 -04:00
parent b3302fb84c
commit 53164ac40d
6 changed files with 1304 additions and 10746 deletions
@@ -1,4 +1,7 @@
import { Component } from '@angular/core';
import { FormControl } from '@angular/forms';
import { bitcoinAddressValidator } from '../../validators/bitcoin-address.validator';
@Component({
selector: 'app-splash',
@@ -7,6 +10,8 @@ import { Component } from '@angular/core';
})
export class SplashComponent {
public address!: string;
constructor() { }
public address: FormControl;
constructor() {
this.address = new FormControl(null, bitcoinAddressValidator());
}
}