I have built a wordpress plugin where users can insert the google map code like this one:
<iframe src="https://www.google.com/maps/embed?pb=xxxxx" width="100%" height="100%" frameborder="0" style="border:0"></iframe>
this code is stored in wp-database and I try to get it from inside my angularjs code..
getMaps();
function getMaps(){
$http.post("wp-content/themes/koplan/pages/getMaps.php").success(function(mapsdata){
$scope.maps = mapsdata;
});
};
My question is: How can I bind/render the iframe in front-end php/html? I've tried <div ng-bind-html=maps>
but nothing showed up.
Is there anyother way?? Please help me, Thanks