From 6a01e3f085689cb52a146e566252960de28c4564 Mon Sep 17 00:00:00 2001 From: juancarmore Date: Wed, 5 Jun 2024 15:58:35 +0200 Subject: [PATCH] Update app.component.ts to implement OnDestroy interface in Ionic tutorial --- application-client/openvidu-ionic/src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application-client/openvidu-ionic/src/app/app.component.ts b/application-client/openvidu-ionic/src/app/app.component.ts index 1912976c..6670cc10 100644 --- a/application-client/openvidu-ionic/src/app/app.component.ts +++ b/application-client/openvidu-ionic/src/app/app.component.ts @@ -1,5 +1,5 @@ import { HttpClient } from '@angular/common/http'; -import { Component, signal } from '@angular/core'; +import { Component, OnDestroy, signal } from '@angular/core'; import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { AlertController, @@ -68,7 +68,7 @@ var LIVEKIT_URL = ''; IonFooter, ], }) -export class AppComponent { +export class AppComponent implements OnDestroy { roomForm = new FormGroup({ roomName: new FormControl('Test Room', Validators.required), participantName: new FormControl('Participant' + Math.floor(Math.random() * 100), Validators.required),