source: Farmatiko/ClientApp/src/app/login/login.component.ts@ c406ae5

Last change on this file since c406ae5 was 785b8bd, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago

Dashboards v0.1

  • Property mode set to 100644
File size: 569 bytes
Line 
1import { Component, OnInit } from '@angular/core';
2import { FormBuilder, FormGroup, FormControl, Validators, FormArray } from '@angular/forms';
3
4@Component({
5 selector: 'app-login',
6 templateUrl: './login.component.html',
7 styleUrls: ['./login.component.css']
8})
9export class LoginComponent implements OnInit {
10 loginForm: FormGroup;
11
12 constructor() {
13 this.loginForm = new FormGroup({
14 email: new FormControl('', [Validators.required, Validators.email]),
15 password: new FormControl('', [Validators.required])
16 });
17 }
18
19 ngOnInit(): void {
20 }
21
22}
Note: See TracBrowser for help on using the repository browser.