angleJSの挿入とiframesrchtmlの置き換え
Angularjs Insertion
html:
of-bind-html
angular.module('DLPortalApp', []).controller('MyCtrl', function ($scope, $http, $sce) { // Key list items $ Scope.specialHtml = $ sce.trustAsHtml ( '
ng-src
ロードモジュール:
of-bind-html
$ Sce this argument, it is equivalent to a key
*/
angular.module('DLPortalApp', []).controller('MyCtrl', function ($scope, $http, $sce) { // Key list items $ Scope.trustSrc = $ sce.trustAs ($ sce.RESOURCE_URL, 'your address')
//$scope.trustSrc = $ sce.trustAsResourceUrl ( 'your address') // This method is equivalent to })
ng-src
class='tabs_content' ng-bind-html='specialHtml'>