noydb/oworms-ui

View on GitHub
src/app/component/common/logo/logo.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Component, inject } from '@angular/core';
import { Params } from '@angular/router';
import { Observable } from 'rxjs';
import { take } from 'rxjs/operators';

import { UtilService } from '../../../service/util.service';

import { AppRoutes } from '../../../util/app.routes';

@Component({
    selector: 'ow-logo',
    templateUrl: 'logo.component.html',
    styleUrls: ['./logo.component.scss']
})
export class LogoComponent {

    readonly queryParams$: Observable<Params> = inject(UtilService).getQueryParams().pipe(take(1));
    readonly AppRoutes = AppRoutes;

}