-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get this work with angular app in webview? #16
Comments
I also tried to accomplish this with Angular + Typescript |
I ended up just porting it to typescript for our angular app then imported it similarly @mbondoso. Uploaded it as a gist here if anyone wants to take the same path. I also added an // setup global NsWebviewInterface
const nsWebViewInterface = new NsWebViewInterface();
(window as any).nsWebViewInterface = nsWebViewInterface;
@Component({
//... |
Just updated everything in project (tns to 3.4.0, angular to 5, etc) and now webview is not being displayed. Any ideas? |
I want to call
thanks! Now, how do I make a function that will be called from ns app? |
I have an angular web app. For some reason, I have to get it work within nativescript app.
I see your demo run a local html in webview with your plugin enabled. However, it is suggested to load a module inside angular rather than using <script> tag to load it globally. So is there a more 'angular' way to get your plugin to work with angular web app?
The text was updated successfully, but these errors were encountered: