import { Component , OnInit } from '@angular/core' ; import { AuthService } from '../services/auth.service' ; @ Component ( { selector : 'app-login' , templateUrl : './login.component.html' , styles : [ ] } ) export class LoginComponent implements OnInit { constructor ( private _authService ) { } ngOnInit ( ) { } login ( ) { this . _authService . login ( ) ; } loginAdmin ( ) { this . _authService . loginAdmin ( ) ; } }