import { Component , OnInit } from '@angular/core' ; import { environment } from '../../environments/environment' ; @ Component ( { selector : 'app-login' , templateUrl : './login.component.html' , styleUrls : [ './login.component.css' ] } ) export class LoginComponent implements OnInit { streamLabsAuthUrl = environment . streamLabsAuthUrl ; breakpoint ; constructor ( ) { } ngOnInit ( ) { this . breakpoint = window . innerWidth <= 800 ? 1 : 2 ; } scrollToSection ( element ) { element . scrollIntoView ( ) ; } onResize ( event ) { this . breakpoint = event . target . innerWidth <= 800 ? 1 : 2 ; } }