How do you implement window.open()
kind of functionality in Angular 4?
function open(){
var URL = "file:///C:\data2.pdf";
window.open(URL, null);
}
I am getting the below error message:
Cannot open local file - Chrome: Not allowed to load local resource.
Let me know if there is any alternative of window.open()
in Angular 4.