0

According to the doc, $sceDelegateProvider can be used to whitelist domains from which Angular may fetch partials hosted on a different domain than the app, to support such a route configuration:

$routeProvider.when('/test1/', {
  templateUrl: 'https://serverName.com/html/test1.html',
  controller: 'test1'
});

A comment in the repo (and a lack of imagination) lead to me to believe remote partials would be fetched via JSONP. Can anyone confirm that?

universalhandle
  • 467
  • 5
  • 10
  • No. https://stackoverflow.com/questions/7531823/use-jsonp-to-load-an-html-page – baao Jun 08 '17 at 23:53
  • If I'm not mistaken, @baao, one can fetch HTML via JSONP provided it is wrapped properly; e.g., `{html: "

    Hello world!

    "}`. In any case, I'm as interested in knowing what the mechanism is as what the mechanism isn't. Does anyone know? Thanks!
    – universalhandle Jun 09 '17 at 14:23

0 Answers0