I have a 3rd party service with a javascript library that will generate HTML from a JSON-structure. The HTML is generated using a directive that calls on the library methods to generate HTML and then put it as innerHTML.
To extend this I have been able to render a custom HTML-tag that I want to process with my own directive.
If my HTML-file starts with:
<vendor-directive vendorAttr="doStuff"></vendor-directive>
After the vendor library it would then result in:
<vendor-directive vendorAttr="doStuff"><my-custom-component>IDabcd1234</my-custom-component></vendor-directive>
Where my-custom-component have a directive that I have specified, that I want to in turn evaluate and pull in some data async, then output that as a complex component or structure.
End result:
<vendor-directive vendorAttr="doStuff">
<my-custom-coponent>
<form><input type="text" ... /></form>
</my-custom-component>
</vendor-directive>
I have looked around and found some information about $compile but I can't get the whole pictures. Is this supported with AngularJS (latest ver) and what are basic syntax to get this working,
Suggestions and examples warmly welcome! Have a nice day,