Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Add attr (tagging-equals) to set a property for equality in custom objects (tagging) #1939

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

cgaggino
Copy link

When you supply a function for tagging, the new item is compared with the existing ones by angular.equals. This is good for primitives but when you are using custom objects they may not be equals due to one ore more properties.
The idea here is to add a new directive attribute (tagging-equals) to set a property by witch the custom object will be compared.

@Jefiozie
Copy link
Contributor

Jefiozie commented Mar 14, 2017

@cgaggino Thanks for submitting this PR. I think this could be something for the futher. For now the focus of this repo is to get less bugs and less new enhancements.
Second to make this PR a good PR I would like to have some tests for this use case.

Still i'm curious could you share a working plunker with some custom functions for this?
Thanks.

@cgaggino
Copy link
Author

Hi @Jefiozie thanks for replying, I'll be adding the tests and the plunker as soon as possible

Kind regards!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants