Hi Guys,
My developer is experiencing this error when running Shapediver on Angular 8:
Here is the code that we are running:
import { Component, ViewChild, AfterViewInit, ElementRef } from ‘@angular/core’;
@Component({
selector: ‘app-shapediver’,
templateUrl: ‘./shapediver.component.html’,
styleUrls: [’./shapediver.component.scss’]
})
export class ShapeDiverComponent implements AfterViewInit {
window: any;
@ViewChild(‘sdv’) sdv: ElementRef;
ngAfterViewInit() {
this.window = window;
// let _container = document.querySelector(’.approach__shapediver’);
let settings = {
container: this.sdv.nativeElement,
ticket:
‘aa45cceb37f09aa9d0105cbaa5d8960c2cfd7f9ea1db5d94147af7de5a80905b1870800103189262fc4eb52ceacac640158ff1dda9b023bf6db6b2cada72ac09071f564bd1616038ae319018447a098f45672ec3f29f6de215a75a22d870cdeda1f24d18d4b89578a43c50acd3b63ebdb6db16db8df7-bd598b3e0aa916828bc38717d5f4fbbf’,
modelViewUrl: ‘eu-central-1’
};
// See https://viewer.shapediver.com/v2/2.14.0/doc/SDVApp.ParametricViewer.html for all settings available via the constructor.
this.window.api = new this.window.SDVApp.ParametricViewer(settings);
}
}
What are we doing wrong?
Thank you for your help in advance!
Regards,
Jonas Blazinskas