import { Component , OnInit } from '@angular/core' ; import { AuthService } from '../core/auth.service' ; @ Component ( { selector : 'app-nav' , templateUrl : './nav.component.html' , styleUrls : [ './nav.component.scss' ] } ) export class NavComponent implements OnInit { constructor ( private auth ) { } ngOnInit ( ) { } logout ( ) { this . auth . signOut ( ) ; } }