Skip to content

Instantly share code, notes, and snippets.

@squadwuschel
Last active May 15, 2017 19:52
Show Gist options
  • Save squadwuschel/f0b673c10bf8ad87fbeb4ce64a867813 to your computer and use it in GitHub Desktop.
Save squadwuschel/f0b673c10bf8ad87fbeb4ce64a867813 to your computer and use it in GitHub Desktop.
[(name)] two-way-databinding
//Dekorator Definition
@Input() name : string;
@Output() nameChange = new EventEmitter<string>();
//Aufruf
<my-child [(name)]="firstname"></my-child>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment