21 lines
458 B
TypeScript
21 lines
458 B
TypeScript
import {Component, OnInit} from '@angular/core';
|
|
import {AuthService} from '../auth/auth.service';
|
|
|
|
@Component({
|
|
selector: 'app-login',
|
|
templateUrl: './login.component.html',
|
|
styleUrls: ['./login.component.scss']
|
|
})
|
|
export class LoginComponent implements OnInit {
|
|
|
|
constructor(private auth: AuthService) {
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
public login(email: string, password: string) {
|
|
this.auth.login(email, password, '/administration');
|
|
}
|
|
}
|