Thanks again for the replies, Eric.

I'm not sure that DynamicComponentLoader is what I'm looking for. I found 
this Angular 2 / Bootstrap Modal Dialogs project 
<https://github.com/shlomiassaf/angular2-modal>, which has some code that 
uses DynamicComponentLoader 
<https://github.com/shlomiassaf/angular2-modal/blob/master/src/BootstrapModal/BootstrapModal.ts>
.

But looking at that code, it seems to inject existing HTML elements, not 
convert strings of HTML text (such as "<mycustom></mycustom>") into working 
HTML. If I'm wrong let me know... Could be that I'm mis-understanding the 
source code.

Another related question: when defining a @View annotation, such as:

    @View({
        template: <div><multiselect></multiselect></div>',
    })

would it be possible to change, at run-time, the HTML in the "template" 
portion? If so then maybe that could be part of the solution to my problem. 
That possibly combined with compileInHost 
<https://angular.io/docs/js/latest/api/core/Compiler-class.html>. I don't 
really know what compileInHost does, but it seems like it *might *be the 
ticket. I'm currently googling code that uses it... but it seems to compile 
existing classes that have a predefined template... which is useless to me 
unless I can change the HTML in the template before compiling.

-Vern

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to