Skip to content

Instantly share code, notes, and snippets.

@squadwuschel
Created May 15, 2017 19:51
Show Gist options
  • Save squadwuschel/dc7dbce112fc0852f789a7d3c957042a to your computer and use it in GitHub Desktop.
Save squadwuschel/dc7dbce112fc0852f789a7d3c957042a to your computer and use it in GitHub Desktop.
two-way-databinding Angular
//Dekorator Definition
@Input() age : string;
@Output() ageChanged = new EventEmitter<string>();
//Aufruf
<my-child [age]="alter" (ageChanged)="alter = $event"></my-child>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment