2025-09-19 17:04:33 +02:00

27 lines
666 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss'],
standalone: false
})
export class DashboardComponent implements OnInit {
title = 'openvidu-components-angular';
private areStaticVideosEnabled = false;
constructor(private router: Router) {}
ngOnInit(): void {}
goTo(path: string) {
this.router.navigate([`/${path}`], { queryParams: { staticVideos: this.areStaticVideosEnabled } });
}
staticVideosChanged(value: boolean) {
this.areStaticVideosEnabled = value;
}
}