26 lines
606 B
TypeScript
26 lines
606 B
TypeScript
|
|
import { Component, OnInit } from '@angular/core';
|
||
|
|
import {EmailValidator, FormControl, FormGroup} from '@angular/forms';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'app-register',
|
||
|
|
templateUrl: './register.component.html',
|
||
|
|
styleUrls: ['./register.component.css']
|
||
|
|
})
|
||
|
|
export class RegisterComponent implements OnInit {
|
||
|
|
form: FormGroup = new FormGroup({
|
||
|
|
username: new FormControl(''),
|
||
|
|
email: new FormControl(''),
|
||
|
|
password: new FormControl(''),
|
||
|
|
password2: new FormControl(''),
|
||
|
|
});
|
||
|
|
loading = false;
|
||
|
|
|
||
|
|
onRegister() {
|
||
|
|
this.loading = !this.loading;
|
||
|
|
}
|
||
|
|
|
||
|
|
constructor() { }
|
||
|
|
|
||
|
|
ngOnInit(): void { }
|
||
|
|
}
|