Wie benutzt man [(ngModel)] auf div's contenteditable in angular2?

Ich versuche, mit ngModel, um zwei-Weg-binden div ' s contenteditable input-Materialien wie folgt:

<div id="replyiput" class="btn-input"  [(ngModel)]="replyContent"  contenteditable="true" data-text="type..." style="outline: none;"    ></div> 

aber es nicht funktioniert und ein Fehler tritt auf:

EXCEPTION: No value accessor for '' in [ddd in PostContent@64:141]
app.bundle.js:33898 ORIGINAL EXCEPTION: No value accessor for ''

InformationsquelleAutor der Frage Kim Wong | 2016-02-13

Schreibe einen Kommentar