html - Update template of component from typescript with Angular2 -
i have div add dynamically html code , take code html save in database (database spring).
then code html saved inside database problem operations used update dynamically div example have inline ckeditor divs or insert other divs not work when code code database.
so ask if way update template of component typescript because using this:
$('#content').html(this.section.content);
with jquery
this angular2 way perform html binding:
<div id="content" [innerhtml]="this.section.content"> </div>
Comments
Post a Comment