Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-chips and ng-change #3580

@xeor

Description

@xeor

It looks like md-chips currently does not support ng-change, and it only have an attribute (md-on-append), to do something when a new item is added.

Either, md-chips needs support for ng-change, or it needs an md-on-delete attribute.
Now, it looks like the best way is to use scope.$watchCollection on the md-chip ng-model attribute to trigger what you want to do.

Old issue that kinda asks the same question: #2259
Forumpost about the same: https://groups.google.com/forum/#!searchin/ngmaterial/ng-change/ngmaterial/AHB3LEMgudI/6TARclcvjYMJ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions