In angularJS, you could use $compile to render a view in an iframe as well as keep the angularjs $scope variables within the iframe. Is there an equivalent functionality in Angular.IO?
AngularJS equivalent in a directive:
var $body = angular.element($element[0].contentDocument.body);
var template = $compile(contents)($scope);
$body.append(template);
I would like to render an iframe, pass the necessary html to populate the iframe and be able to use the template language inside the iframe html.
Similar to this but, this plunkr isn't working. It doesn't render the variables in the iframe view.
Update: Found some tutorials on how to use angularJS in typescript and that might work. Ultimately, I would like to share variables between the parent and iframe, similar to how $scope in angularJS can be shared between parent and iframe.