0

I wanted to display my templates using angularjs inappbrowser, but at last I was getting an error

code":-1100,"message":"The requested URL was not found on this server.",

My codes:

$cordovaInAppBrowser.open('templates/payment.html', '_blank').then(function(event){ console.log('Open successfully'); }, function(event) { });

When I try to replace the url to external, it is working. So, are the inappbrowser must be external link?

Any solution for open my template in new window?

Joe
  • 37
  • 7

1 Answers1

0

Finally i success to display my template in new window/inappbrower. My file structure is "templates/Home/payment.html"

So, the code will be

var ref= $cordovaInAppBrowser.open('templates/Home/payment.html', '_blank', options) .then(function(event) { console.log('Open Url success', event); },function(event) { // error });

Hopes this can help.

Joe
  • 37
  • 7