Skip to content

Commit 032b3ab

Browse files
authored
Update to support Angular Ivy
Allow Angular Ivy to correctly register the MLKitView
1 parent 93c6d5d commit 032b3ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mlkit-core/angular/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
22
import { registerElement } from '@nativescript/angular';
33

44
import { MLKitViewDirective } from './mlkit-view-directive';
5+
import { MLKitView } from '@nativescript/mlkit-core';
56
export * from './mlkit-view-directive';
67

78
@NgModule({
@@ -12,4 +13,4 @@ export * from './mlkit-view-directive';
1213
// @ts-ignore
1314
export class MLKitModule { }
1415

15-
registerElement('MLKitView', () => require('@nativescript/mlkit-core').MLKitView);
16+
registerElement('MLKitView', () => MLKitView);

0 commit comments

Comments
 (0)