Three way binding in Angular 2 and Angularfire2
问题 I am trying to three-way bind an input element to firebase database in Angular.js 2 (2.0.0-rc.4), using AngularFire 2 (2.0.0-beta.2). I have a very simple html like: <form (ngSubmit)="onSubmit()" #commentForm="ngForm"> <input [(ngModel)]="model.author" type="input" name="author" required> </form> In my component, to save and retrieve contents of this input to firebase, I have an implementation like this: export class CommentFormComponent implements OnInit, AfterViewInit { @ViewChild(