cavallium-website/src/app/app.component.ts

19 lines
467 B
TypeScript
Raw Normal View History

import { Component, HostListener, ViewChild } from "@angular/core";
import { NavbarComponent } from "./gui/navbar/navbar.component";
2019-04-11 19:57:39 +02:00
@Component({
2019-04-12 20:20:38 +02:00
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"]
2019-04-11 19:57:39 +02:00
})
export class AppComponent {
title = "cavallium-website";
@ViewChild("navbar") navbar: NavbarComponent;
@HostListener("scroll", ["$event"])
handleScroll(event: Event) {
this.navbar.onParentScroll(event);
}
2019-04-11 19:57:39 +02:00
}