Thanks to visit codestin.com
Credit goes to github.com

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

docs($cacheFactory): prevent example breaking on key update #8214

Closed
wants to merge 1 commit into from
Closed

docs($cacheFactory): prevent example breaking on key update #8214

wants to merge 1 commit into from

Conversation

kasoban
Copy link
Contributor

@kasoban kasoban commented Jul 16, 2014

The example for $cacheFactory breaks when a user tries to update a value for a key.
Setting a new value for an existing key results in duplicate key entries in the key array, thus breaking the ng-repeat directive.
With this fix the key is only added if it isn't contained in the array already.

The example for $cacheFactory breaks when a user tries to update a value for a key.
Setting a new value for an existing key results in duplicate key entries in the key array, thus breaking the ng-repeat directive.
With this fix the key is only added if it isn't contained in the array already.
@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#8214)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@kasoban kasoban added cla: yes and removed cla: no labels Jul 16, 2014
@Narretz Narretz added this to the 1.3.0 milestone Jul 16, 2014
@kasoban
Copy link
Contributor Author

kasoban commented Aug 20, 2014

Has this dropped from the radar due to the build error? The build error isn't related to the PR, but sadly I cannot restart it to get rid of it.

@caitp
Copy link
Contributor

caitp commented Aug 20, 2014

Nah, don't worry about the build error kasoban --- if you want to restart it you can just force-push to your branch, too (the real reason is honestly that there are so many PRs and issues, there are about 50 untraiged issues/PRs and some of them are a bit more demanding of attention/take longer)

@caitp
Copy link
Contributor

caitp commented Aug 20, 2014

So the issue here is the track by issue... but I think we can fix this in a more algorithmically efficient way. I'll make a slight modification and check this in

caitp pushed a commit that referenced this pull request Aug 20, 2014
The example for $cacheFactory breaks when a user tries to update a value for a key.
Setting a new value for an existing key results in duplicate key entries in the key array, thus
breaking the ng-repeat directive. With this fix the key is only added if it isn't contained in the
cache.

Closes #8214
@caitp caitp closed this in 00d5fde Aug 20, 2014
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.

4 participants