In angular js how can, I render external HTML. I am getting HTML in response from the server.
and then storing that HTML in a variable $scope.my_var = res.data and then I want to render that HTML how can I do that.
HTML in sample response can be like as follows
"<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\">
<style type=\"text/css\">body {background-color:#fff;}</style>
</head>
<body onload=\"return window.document.echoForm.submit()\">
<form name=\"echoForm\" method=\"POST\" accept-charset=\"UTF-8\">
<input type=\"hidden\" >
</form>
</body>
</html>
\n"
I want to display this HTML content. However, I haved used ngSanitize and ng-bind-html but it is not working for form and input tab only displaying value of title tag