| 12345678910111213141516171819202122 |
- import {Component} from '@angular/core';
- import {AuthService} from "../auth-service/auth.service";
- @Component({
- selector: 'app-login-view',
- templateUrl: './login-view.component.html',
- styleUrls: ['./login-view.component.css']
- })
- export class LoginViewComponent {
- formData: any = {};
- constructor(private authService: AuthService) {
- }
- login() {
- console.log("login attempt")
- console.log(this.formData)
- this.authService.login(
- this.formData.username,
- this.formData.password)
- }
- }
|