I am using the approach that Jeremy Danyow specifies in this link:
How do you use ViewCompiler to manually compile part of the DOM?
Here is my code:
this.viewFactory.insert(this.viewportEl, '<template><' + name + '></' + name + '></template>', this);
which is working fine in the sense that it is replacing the contents of the dom element. However, the dynamic custom element is not getting compiled. I even tried adding a require statement inside the dynamic template and it gets included just fine but the custom element is still not getting compiled.
Thanks in advance.