简体   繁体   English

Angular Material md-contact-chips回调问题

[英]Angular Material md-contact-chips callback issue

i am facing some problems about Angular Material md-contact-chips. 我面临有关Angular Material md-contact-chips的一些问题。

How to do 'Return a message' and 'Callback with Remove btn' like md-chip auto-complete. 像md-chip自动完成一样,如何执行“返回消息”和“带删除btn的回调”。 Because i can't use the 'md-on-append' and 'md-on-remove'. 因为我无法使用“添加时md”和“删除时md”。

  1. I want to click a result by auto-completed records, then console my clicked result. 我想通过自动完成的记录单击结果,然后管理我单击的结果。
  2. I want to click the remove btn inside the contact-chip, then console the chip data. 我要单击接触芯片内部的btn,然后控制芯片数据。

It's my basic offical code. 这是我的基本官方代码。

<md-contact-chips ng-model="dialogContentCtrl.contacts"
    md-contacts="dialogContentCtrl.querySearch($query)"
    md-contact-name="name"
    md-contact-image="image"
    md-require-match="true"
    placeholder="Add Tag..."
    secondary-placeholder="Add Tag...">
</md-contact-chips>

The only way to watch data change is with $watch or $watchCollection. 监视数据更改的唯一方法是使用$ watch或$ watchCollection。 I'm using the $watchCollection for this component. 我正在使用$ watchCollection这个组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM