I am using a directive to inject some specific content on my page. We have a requirement when the url attribute points to an html file and the contents of that file need to be rendered on my page. How can I do that
<section>
<block-with-html
url = "locatiion of html file">
</block-with-html>
</section>
angular
.module('app.blockWithHtml', [])
.directive('blockWithHtml', BlockWithHtmlDirective);
function BlockWithHtmlDirective(ConfigBlocksService) {
return {
restrict: 'E',
scope: {
url: '='
},
template: `
<section >
<h4>block with html</h4>
<div>content form the html file goes here</div>
</section>
`,
}
}