agrege el front
This commit is contained in:
21
frontend/src/app/app.component.ts
Normal file
21
frontend/src/app/app.component.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user