DEV Community

[Comment from a deleted post]
Collapse
 
fredericbonnet profile image
Frédéric Bonnet

Nice intro. I suggest you use the nameChange convention in place of changeName so that your parent component can use the 2-way binding syntax, e.g.:

    <app-child [(name)]="myname"></app-child>
Collapse
 
rtpharry profile image
Matthew Harris

What is this technique? What term do I need to Google for more info? Thanks :)

Collapse
 
rtpharry profile image
Matthew Harris