Bidirectional data binding on a component input property
问题 I am trying to make something work on angular2 and I am unable to find something about this behavior. I have an application that implements a custom component like this one : import {Component,Input} from 'angular2/core' @Component({ selector:'my-comp', template:`<input type="text" style="text-align:center; [(ngModel)]="inputText"> <p>{{inputText}}</p>` }) export class MyComp{ @Input() inputText : string; } And I am trying to do a bidirectional databinding on my inputText variable from my