search

Home  >  Q&A  >  body text

angular.js - How to bind array to ngmodel bound by select

The id in the option from repeat is bound to the ngmodel of select in the form of an array. How to bind...

phpcn_u1582phpcn_u15822790 days ago1272

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-15 17:04:40

    selectngModel can be bound to an array. For details, you can take a look at Hacking with Angular: Play with the 7, 8, and 9 examples in the ngOptions directive; it should be able to help you.

    reply
    0
  • Cancelreply