Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 12x 4x 4x 4x 4x 4x 4x | import { Component, OnInit, computed, inject } from '@angular/core';
import { Router, RouterOutlet } from '@angular/router';
import { initFlowbite } from 'flowbite';
import { AuthService } from './core/auth/auth.service';
import { LoadPage } from './shared/ui/loading/app/load.page';
import { ToastComponent } from './shared/ui/toast/toast.component';
@Component({
selector: 'app-root',
imports: [RouterOutlet, ToastComponent, LoadPage],
templateUrl: './app.html',
styleUrl: './app.css',
})
export class App implements OnInit {
private readonly authService = inject(AuthService);
private readonly router = inject(Router);
title = 'TaskManager';
readonly showAuthLoader = computed(() => {
return !this.authService.authResolved() && this.router.currentNavigation() !== null;
});
ngOnInit(): void {
initFlowbite();
}
}
|