Skip to content

Commit

Permalink
Merge pull request #1 from sablono/fix_angular_register_element
Browse files Browse the repository at this point in the history
Fix angular register element
  • Loading branch information
sb-arzan authored Jan 7, 2022
2 parents a5e78ca + 9743709 commit f483f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript-community/ui-webview",
"version": "1.0.0",
"version": "1.3.5",
"homepage": "https://github.com/nativescript-community/ui-webview#readme",
"bugs": {
"url": "https://github.com/nativescript-community/ui-webview/issues"
Expand Down
4 changes: 2 additions & 2 deletions src/webview/angular/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { NgModule } from '@angular/core';
import { NativeScriptCommonModule, isKnownView, registerElement } from '@nativescript/angular';

const webviewElementName = 'WebViewExt';
const webviewElementName = 'AWebView';

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

@NgModule()
Expand Down

0 comments on commit f483f97

Please sign in to comment.