My Angular app functions as an HTML editor that transmits the template to a server for rendering with dynamic data. The rendered content is then sent back to the client, where it needs to be placed inside an iframe for preview purposes. It appears that ng-bind-html does not work when used in conjunction with an iframe. Is there a method in AngularJS to dynamically set the content of an iframe?
Edit: The key issue with these templates is that they represent entirely separate HTML documents (including doctype, CSS, markup, etc.). As a result, it becomes crucial to confine the rendered output within some form of sandbox.