Angular2 : two way binding inside parent/child component

后端 未结 5 968
天涯浪人
天涯浪人 2020-12-09 08:24

Version: \"angular2\": \"2.0.0-beta.6\"

I would like to implement a two way binding inside a parent/child component case.

On my child component, I\'m using t

5条回答
  •  醉梦人生
    2020-12-09 09:22

    Yes we can use banana property to share the data between child to parent [(propertyname)] and propertynameChange emitter event. Sample plunker available https://plnkr.co/edit/FYXv36?p=preview

提交回复
热议问题