Answer the question
In order to leave comments, you need to log in
How to use easyXDM + angular to change iframe height?
Hello!
There is a provider:
$rootScope.$on('$viewContentLoaded', function(){
var socket = new easyXDM.Socket({
onReady: function () {
socket.postMessage(document.body.scrollHeight);
}
});
});
var socket = new easyXDM.Socket({
remote: "https://url", // the path to the provider
container: document.getElementById("container"),
onMessage: function(message, origin){
console.log(message);
this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question