Initial Implementation of the Home Page
This commit is contained in:
@@ -7,4 +7,12 @@ import { Component, OnInit } from '@angular/core';
|
||||
})
|
||||
export class HomeComponent {
|
||||
constructor() {}
|
||||
|
||||
scrollToElement(element: HTMLElement): void {
|
||||
element.scrollIntoView({
|
||||
behavior: "smooth",
|
||||
block: "start",
|
||||
inline: "nearest"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user