Angular two way binding and banana box syntax

@Input()
myInputProperty: string;
myInputPropertyChange = new EventEmitter<string>();
<my-component [myInputProperty]="propertyToBindTo (myInputPropertyChange)="propertyToBindTo = $event"></my-component>
<my-component [(myInputProperty)]="propertyToBindTo"></my-component>
<input name="checked" [(ngModel)]="propertyToBindTo">
<input name="propertyToBindTo" [ngModel]="propertyToBindTo"  (ngModelChange)="myFunctionWithCustomLogic($event)">

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store