using angularjs unique

The problem is when using unique it removes duplicates but it removes duplicates from the entire row. Is it possible to remove the duplicate object but not the next value.
 $scope.names = [
        {name:'ddeegg',rollno:'4', addon: 'showme'},
        {name:'ddeegg',rollno:'4',addon: 'next my turn'},

duplicate rollno: 4 but add the addon. values

Open in new window

Seven priceFull StackAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle HamiltonData ScientistCommented:
that is exactly what it was designed to do.

It does not remove "from" the row. It removes the row.

It removes the row (ie, the whole object) if the condition is met, in this case the 'name' property is a duplicate.

What is the output that you are expecting?
Seven priceFull StackAuthor Commented:
Well is there an alternative that I can filter and not use duplicates.
Kyle HamiltonData ScientistCommented:
anything is possible.

it's not clear what you want to acheive. please provide the output you are hoping for
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Seven priceFull StackAuthor Commented:

the outcome rollno 4 exists again then the second one is null but the addon
 will still show.
Julian HansenCommented:
Sounds like you want to maybe look at restructuring your data. Why can't you just use the structure you used for the outcomes?
Seven priceFull StackAuthor Commented:
Kyle HamiltonData ScientistCommented:
where is your data coming from? is that the format you receive it in?
Seven priceFull StackAuthor Commented:
It is similar to what I need. it is return in Json format.  If we can get the example working I basically can take that and apply it to my own.
Kyle HamiltonData ScientistCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Seven priceFull StackAuthor Commented:
Perfect. Thanks again.
Kyle HamiltonData ScientistCommented:
np :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.