Answer the question
In order to leave comments, you need to log in
Why doesn't the iframe pass through to the HTML page?
Hello everyone :)
In general, there are troubles with the angler.
In general, there is an object with data and content in it (which comes from the admin panel content), and then we insert it into html with angular.
But he does not insert something youtube vidos. Only <p></p>
tags come.
View: Angular<div ng-bind-html="post.content"></div>
app.controller('PageCtrl', ['$scope', '$http', '$location', '$routeParams', '$rootScope', function($scope, $http, $location, $routeParams, $rootScope){
// $rootScope.layout.loading = true;
$http.get('/page/' + $routeParams.alias + '.json?lang='+lang).success(function(data){
if (!data)
$scope.not_found = true;
$scope.post = data;
console.log($scope.post);
// $rootScope.layout.loading = false;
});
}]);
Answer the question
In order to leave comments, you need to log in
I directly inserted the naked JSom content into the block and it all worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question