journal-home.component.ts 728 B

123456789101112131415161718192021
  1. import { Component, ViewChild, AfterViewInit } from '@angular/core';
  2. import { NgbOffcanvas } from '@ng-bootstrap/ng-bootstrap';
  3. import { OffcanvasComponent } from './offcanvas/offcanvas.component';
  4. @Component({
  5. selector: 'app-journal-home',
  6. templateUrl: './journal-home.component.html',
  7. styleUrls: ['./journal-home.component.scss'],
  8. })
  9. export class JournalHomeComponent {
  10. @ViewChild('offcanvas') offcanvasNavigation?: OffcanvasComponent;
  11. public openNavigation(): void {
  12. this.offcanvasNavigation?.openNavigation();
  13. }
  14. // public ngAfterViewInit(): void {
  15. // // Hier können funktionen aufgerufen werden, die in der child component definiert sind
  16. // this.offcanvasNavigation?.openNavigation();
  17. // }
  18. }