Skip to content
Snippets Groups Projects
Commit fdf30fbf authored by jojohoch's avatar jojohoch
Browse files

Unsubscribe subscription of GeometryComponent

parent abae015b
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,10 @@ export class GeometryComponent extends ElementComponent implements AfterViewInit ...@@ -51,7 +51,10 @@ export class GeometryComponent extends ElementComponent implements AfterViewInit
private externalResourceService: ExternalResourceService) { private externalResourceService: ExternalResourceService) {
super(elementRef); super(elementRef);
this.externalResourceService.initializeGeoGebra(this.renderer); this.externalResourceService.initializeGeoGebra(this.renderer);
this.pageChangeSubscription = pageChangeService.pageChanged.subscribe(() => this.loadApplet()); this.pageChangeSubscription = pageChangeService.pageChanged
.pipe(
takeUntil(this.ngUnsubscribe)
).subscribe(() => this.loadApplet());
this.geometryUpdated this.geometryUpdated
.pipe( .pipe(
debounceTime(500), debounceTime(500),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment