AngularJS Include a file from a different domain




AngularJS Include a file from a different domain

<!DOCTYPE html>
<html>
   <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
   </script>
   <body ng-app="myApp">
      <div ng-include="'http://tutorialsroot.com/angular_include.php'"></div>
      <script>
         var app = angular.module('myApp', [])
         app.config(function($sceDelegateProvider) {
            $sceDelegateProvider.resourceUrlWhitelist([
               'http://tutorialsroot.com'
            ]);
         });
      </script>
   </body>
</html>

Output