Binding to primitives in Angularjs ng-repeat

I recently stumbled upon a bug in angular.

At the time of this writing the bug is still present in version 1.0.5 (stable) and 1.1.13 (unstable). Maybe it’s not a good idea to bind to a primitive type in an array but let’s say you had just a simple javascript array of strings and you want to repeat those in unordered list. Seems simple right? Now say you want to update the array model - let’s call it list.

Here is the bug in action:

and here is my workaround:

post by Kelt Dockins on 12/09/2012