You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar.component.ts 402B

123456789101112131415161718192021
  1. import { Component, OnInit } from '@angular/core';
  2. @Component({
  3. selector: 'app-navbar',
  4. templateUrl: './navbar.component.html',
  5. styleUrls: ['./navbar.component.css']
  6. })
  7. export class NavbarComponent implements OnInit {
  8. navbarOpen = false;
  9. constructor() {
  10. }
  11. toggleNavbar() {
  12. this.navbarOpen = !this.navbarOpen;
  13. }
  14. ngOnInit(): void {
  15. this.navbarOpen = !this.navbarOpen;
  16. }
  17. }