Skip to content

Commit

Permalink
Merge pull request #34 from yqni13/fix-manual-host
Browse files Browse the repository at this point in the history
manual host #2
  • Loading branch information
yqni13 authored Jun 30, 2024
2 parents 195e184 + 0c6bea2 commit de4046e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ export class AppComponent implements OnInit {

private mobileNavExpended = false;
private collapseNavbarWidth = 768;
title: string;

constructor(private router: Router) {
router.events.subscribe(e => {
if(e instanceof NavigationStart)
window.scrollTo(0,0)
})
this.title = 'portfolio';
}

ngOnInit() {
Expand Down

0 comments on commit de4046e

Please sign in to comment.