generated from nhcarrigan/template
feat: hamburger menu on small screens
This commit is contained in:
@@ -16,5 +16,19 @@ import { RouterLink } from "@angular/router";
|
||||
templateUrl: "./nav.html",
|
||||
})
|
||||
export class Nav {
|
||||
public isMenuOpen = false;
|
||||
|
||||
/**
|
||||
* Toggles the mobile menu open/closed state.
|
||||
*/
|
||||
public toggleMenu(): void {
|
||||
this.isMenuOpen = !this.isMenuOpen;
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the mobile menu.
|
||||
*/
|
||||
public closeMenu(): void {
|
||||
this.isMenuOpen = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user