search

Home  >  Q&A  >  body text

javascript - Please give me some guidance. Angular's $event is undefined in select?

Development environment:

Development issues:

Development purpose:

DEMO:

Screenshot description:


Thank you very much for helping me check and answer. Thank you.

世界只因有你世界只因有你2723 days ago721

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-05 11:11:56

    ng-change does not allow passing $event, because it is not an event in angular, but listens for changes in values, so there will be no $event.
    Do you have any need to operate the dom?
    About angular, please explain:
    1. If you use angular, try not to directly operate the dom
    2. If you really need to operate, it is best to operate with a directive

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-06-05 11:11:56

    Answer here: https://stackoverflow.com/que...

    reply
    0
  • Cancelreply