Bidirectional data binding on a component input property

前端 未结 4 1831
名媛妹妹
名媛妹妹 2021-02-19 07:24

I am trying to make something work on angular2 and I am unable to find something about this behavior.

I have an application that implements a custom component like this

4条回答
  •  -上瘾入骨i
    2021-02-19 08:25

    Your Plunker already contains the EventEmitter. The @Output() annotation is missing. To change the value call inputTextChanged.emit(newValue) (this also changes the value on inputText)

提交回复
热议问题