Files
unified-restaurant-original/frontend/src/app/app.component.ts
2021-07-12 23:39:39 -04:00

22 lines
413 B
TypeScript

import { Component } from '@angular/core';
import {AuthService} from "@auth0/auth0-angular";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'frontend';
constructor(public auth: AuthService) {
}
loginWithRedirect(){
this.auth.loginWithRedirect();
}
logout(){
this.auth.logout();
}
}