Angular.js Include


Angular.js Include

<body ng-app="myApp"> <div ng-include="'http://www.refsnesdata.no/angular_include.asp'"></div> <script> var app = angular.module('myApp', []) app.config(function($sceDelegateProvider) { $sceDelegateProvider.resourceUrlWhitelist([ 'http://www.refsnesdata.no/**' ]); }); </script> </body> view-source:http://www.refsnesdata.no/angular_include.asp.. 다른도메인 파일을 include 하기 위한 방법 <h1>Hello From Another Domain!</h1> <p>This file is located on the domain "</p'>http://www.refsnesdata.no"</p> <p>To allow thi...



원문링크 : Angular.js Include