"...git@scm.cms.hu-berlin.de:iqb/verona-modules-aspect.git" did not exist on "90675da21e322e39908be246c0997926d6280eac"
Newer
Older
AfterContentChecked,
Directive, ElementRef
import { UIElement } from 'common/models/elements/element';
import { AspectError } from 'common/classes/aspect-error';
export abstract class ElementComponent implements AfterContentChecked {
constructor(public elementRef: ElementRef) {}
get domElement(): Element {
return this.elementRef.nativeElement;
}
ngAfterContentChecked(): void {
this.project = this.elementRef.nativeElement.closest('aspect-element-group-selection') ? 'player' : 'editor';
// eslint-disable-next-line class-methods-use-this
throwError(code: string, message: string) {
throw new AspectError(code, message);
}