I am trying to do a simple binding from an Angular2 component to the template. My template code looks like this...
<textarea class="left-side" #newLeft (keyup)="enterLeftText($event, newLeft)"></textarea>
<textarea class="right-side">{{leftText}}</textarea>
Then in my component I have the following...
enterLeftText($event, newLeft) {
this.leftText = newLeft.value;
}
The problem is that newLeft is always undefined. What am I missing?
textareadoesn't support the#bindingnotation. Maybe not implemented yet, you'll need to create you own directive to watch for events and update the model