You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/22 11:42:52 UTC
[GitHub] [cordova-plugin-inappbrowser] kumarmanishc commented on issue #873: 'InAppBrowser' refers to a value, but is being used as a type here. Did you mean 'typeof InAppBrowser
kumarmanishc commented on issue #873:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/873#issuecomment-924850179
Hello @Callan003 Yes I tried with some traditional approach of browser instance creation.
_I have created an service as iab.service.ts and then used create function of IABService class_
**You can also do some research and add options as well**
`import { Injectable } from '@angular/core';
declare const cordova: any;
@Injectable({
providedIn: 'root',
})
export class IABService {
constructor() {}
/**
* @description Create in app browser.
*/
create(url: string, target: string = '_self', option = {}) {
cordova.InAppBrowser.open(url, target);
}
}
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org