added registration component
This commit is contained in:
25
src/app/account/register/register.component.ts
Normal file
25
src/app/account/register/register.component.ts
Normal 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 { }
|
||||
}
|
||||
Reference in New Issue
Block a user