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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -