Pramod M

Pramod M

  • NA
  • 81
  • 9.8k

2 ng model in one input

May 27 2019 8:04 PM
<input [[ng-model]]="edit.name" /> my requirement is when page load i need[[ng-model]] ="edit.city" but after load i need above [[ng-model]]="edit.name"in same input So can i use <input type="text" [[ng-model]]="edit.name||edit.city" />

Answers (1)