Skip to content

Commit fc0a6a7

Browse files
committed
feat(core/dom): expose host element from NgtCanvasContent
1 parent 77c46eb commit fc0a6a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/core/dom/src/lib/canvas.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ import { createPointerEvents } from './events';
4949

5050
@Directive({ selector: 'ng-template[canvasContent]' })
5151
export class NgtCanvasContent {
52+
private canvas = inject(NgtCanvasImpl);
53+
54+
get host() {
55+
return this.canvas['host'].nativeElement;
56+
}
57+
5258
constructor() {
5359
const store = injectStore();
5460
const vcr = inject(ViewContainerRef);

0 commit comments

Comments
 (0)