import { NgModule } from '@angular/core';
import { RouterModule, ExtraOptions } from '@angular/router';

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

const routerOptions: ExtraOptions = {
    anchorScrolling: 'enabled',
    scrollPositionRestoration: 'enabled',
    scrollOffset: [0, 150],
};

@NgModule({
    imports: [
        RouterModule.forRoot(routes, routerOptions),
    ],
    exports: [
        RouterModule,
    ],
})
export class AppRoutingModule {
}
