import { Component } from '@angular/core' import {UsersService} from '../../services/users.service'; @Component({ selector: 'app-login', standalone: false, templateUrl: './login.component.html', styleUrl: './login.component.css' }) export class LoginComponent { constructor( protected usersService: UsersService ) {} login(username: string | null, password: string | null) { console.log(`attempting to log in with ${username} ${password}`) if (!username || !password) { return; } this.usersService.login(username, password) } }