refactor: remove unused parameters and improve formatting
This commit is contained in:
parent
1111c91407
commit
851cfe1bc8
5 changed files with 28 additions and 18 deletions
|
@ -1,7 +1,8 @@
|
|||
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, inject, OnDestroy, OnInit } from '@angular/core';
|
||||
import { NgFor } from '@angular/common';
|
||||
import { NavbarComponent } from '@shared/components/navbar/navbar.component';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { AuthService } from '@service/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-landing-page',
|
||||
|
@ -13,6 +14,7 @@ import { RouterLink } from '@angular/router';
|
|||
export class LandingComponent implements OnInit, OnDestroy {
|
||||
currentSlide = 0;
|
||||
private autoplayInterval: ReturnType<typeof setInterval> | undefined;
|
||||
authService: AuthService = inject(AuthService);
|
||||
|
||||
ngOnInit() {
|
||||
this.startAutoplay();
|
||||
|
|
Reference in a new issue