maciejtreder/angular-universal-pwa

View on GitHub
application/src/app/app.component.ts

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function ngOnInit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public ngOnInit(): void {
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event) => {
const snapshot: ActivatedRouteSnapshot = this.router.routerState.snapshot.root.firstChild;
 
const title: string = snapshot.data['title'];
Severity: Minor
Found in application/src/app/app.component.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status