Multiple ng-models on one input field?

前端 未结 2 1946

I have a form, and a list of items. I used ng-model=\"searchFor\" to filter out the list of items appropriately (this part is working fine), but I also want to \"s

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 14:34

    Try using ng-change event to capture model value and assign it to other input element with its own ng-model.

    
    
    

    Model
    {{input | uppercase}}
    Model 1
    {{input1 | uppercase}}
    Model 2
    {{input2 | uppercase}}

提交回复
热议问题