SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 1 JavaScript

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

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
O
Ole Weitz committed
5bba892ffd45440d904843e55230a6fff8417de0
Parent: ec27dea
Committed by Caitlin Potter <caitpotter88@gmail.com> on 8/20/2014, 2:49:14 PM