Angular 4 problem setting data in text editor

0

I have a text editor and type word and in that I need to add text that comes from a modal to this editor, with the two way data binding I can set the variable with the data that is coming from the modal and it inserts , but I add several text editors, and they are coming with the value of the first editor, I wanted to know how to fix this problem

  <div class="row">
        <div class="col-md-8">
            <app-tinymce [(ngModel)]="descricao"></app-tinymce>
        </div>
  </div>
    
asked by anonymous 26.04.2018 / 16:46

1 answer

0

Each one will have the value of its respective ngModel if you want each one to have a different value you need a varaiavel per ngmodel for each type [(ngModel)]="description1", [(ngModel)]="description2". You can use ngfor to make it easier to see this link. link

    
26.04.2018 / 18:26