import { Component } from '@angular/core'; import {BaseUtils} from "./utils/BaseUtils"; import {Router} from "@angular/router"; import {AuthService} from "./services/auth.service"; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { baseUtils: BaseUtils = new BaseUtils(); social_media_links: {link: string, name: string}[] = [ {name: "Дискорд", link: "/discord"}, {name: "Телеграм", link: "https://t.me/facti13"}, {name: "Стим", link: "/steam"} ] logined: string | null = null; constructor(private router: Router, public auth_service: AuthService) { } go2url(urls: string[]) { this.router.navigate(urls) } logout() { this.auth_service.logout() } login() { this.auth_service.login() } }