Skip to content

Commit 17c9e72

Browse files
authored
Update Angular module and component names
Angular flavor of this does not currently work. This changes the names to match what is in the documentation. Is this enough to fix Angular version? I don't know. - Change component name from 'WebViewExt' to 'AWebView' - Change module name from 'WebViewExtModule' to 'AWebViewModule'
1 parent af5947c commit 17c9e72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webview/angular/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { NgModule } from '@angular/core';
22
import { NativeScriptCommonModule, isKnownView, registerElement } from '@nativescript/angular';
33

4-
const webviewElementName = 'WebViewExt';
4+
const webviewElementName = 'AWebView';
55

66
if (!isKnownView(webviewElementName)) {
7-
registerElement(webviewElementName, () => require('@nativescript-community/ui-webview').WebViewExt);
7+
registerElement(webviewElementName, () => require('@nativescript-community/ui-webview').AWebView);
88
}
99

1010
@NgModule()
11-
export class WebViewExtModule {
11+
export class AWebViewModule {
1212
imports: [NativeScriptCommonModule];
1313
}

0 commit comments

Comments
 (0)