added registration component

This commit is contained in:
2020-07-21 08:46:11 +02:00
parent 46ce0ddbff
commit 2cf55e6709
4 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
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 { }
}