import { Component, OnInit } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NxvNavigationService } from '@aposin/ngx-docs-ui';

@Component({
    selector: 'doc-root',
    template: `<router-outlet></router-outlet>`,
    standalone: true,
    imports: [RouterOutlet],
})
export class AppComponent implements OnInit {
    constructor(private readonly _navigationService: NxvNavigationService) {}

    ngOnInit(): void {
        this._navigationService.resetScrollPositionWatcher();
    }
}
