Peter Stoev,
But I haven’t got problems with dynamic component loading. I have problem with inserting component in tab.
I have a component factory to create dynamic component and jqxTab component where I want to insert my component as a tab content. But method creating new tabs has only html argument, not component or factory. After creating a new tab with some html I can’t get a viewContainerRef – it’s just html. Your example is great, but it shows how to place dynamicly created component inside ng-template container, not anywhere I want, not inside HtmlElement.