1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

use FormControl on HTML string returned from an API

Discussão em 'Angular' iniciado por gruuuvy, Outubro 11, 2024.

  1. gruuuvy

    gruuuvy Guest

    I have an API that returns a large HTML string with many inputs, text areas, checkboxes, each named with ids and other metadata.

    I am currently rendering this HTML into my page with [innerHtml]="sanitizedHtmlString", and interacting with the inputs via TypeScript DOM manipulation. Is there a clever way to create reactive form controls on top of this HTML so that I can work with form controls and Angular libraries instead?

    Continue reading...

Compartilhe esta Página