I want to embedded Web site url in to ionic page by using web view

#1

It should be look like how ionic page look like (i.e header).

1 Like
#2

This worked for me !!

let proxyurl = "https://cors-anywhere.herokuapp.com/";
this.myVal = this.http
  .get(proxyurl + 'https://www.google.com')
  .map(response => response.text())
  .subscribe(
    function (data) {
      document.getElementsByTagName("ion-content")[0].innerHTML = data;
    }
);
#3

import { Component } from ‘@angular/core’;
import { IonicPage, NavController, NavParams } from ‘ionic-angular’;
import { ApiProvider } from ‘./…/…/providers/api/api’;
//import { ThemeableBrowserOptions, ThemeableBrowserObject } from ‘@ionic-native/themeable-browser’;
//import { ThemeableBrowser } from ‘@ionic-native/themeable-browser’;
/**

@IonicPage()
@Component({
selector: ‘page-events’,
templateUrl: ‘events.html’,
})
export class EventsPage {

constructor(public navCtrl: NavController,public navParams: NavParams, public apiProvider: ApiProvider) {
}
/
let proxyurl = “https://cors-anywhere.herokuapp.com/”;
this.myVal = this.http
.get(proxyurl + ‘https://www.google.com’)
.map(response => response.text())
.subscribe(
function (data) {
document.getElementsByTagName(“ion-content”)[0].innerHTML = data;
}
);

}
This is my ts file but it throwing error