I came across the error message below
[ts] Property type 'url' does not exist on type 'Event'.
any
This is the TypeScript (JavaScript) code snippet that I am using
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
var ref = window.open(url, '_blank', 'location=yes');
ref.addEventListener('loadstart', function(event) { });
ref.addEventListener('loadstop', function(event) { });
ref.addEventListener('loaderror', function(event) { alert( event.url ) });//Property type 'url' does not exist on type 'Event'.
}
Here are the modules I have imported
import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { Event } from '@angular/router';
If you can assist with a solution, it would be greatly appreciated!