0

Our project architect decided that they want to have html-Templates for a guide book for our users persisted in our database for version management and other reasons. Now they expect me to fetch those templates whenever a user opens the guide book inside our application and display it as a responsive webpage.

So far so good. The problem arises when they told me to include dozens of features and s in this guide book.

So I need to fetch templates which contain non native component-tags and manipulate those to do some in logic stuff (like handling MatDialogs for example) and display these.

When injecting these via [innerHTML] this obviously breaks since the templates are not compiled by angular and therefore tags like <mat-icon> cannot be resolved. In addition all event handlers like onclick an stuff are erased by the Angular Sanitizer anyway (thank gooogle/god for that).

To conclude: Is there any chance/hope that this all is achievable or do I need to confront out architect?

Chund
  • 355
  • 2
  • 15

0 Answers0