Binding to primitives in Angularjs ng-repeat

I recently stumbled upon a bug in angular. https://github.com/angular/angular.js/pull/1661

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: http://plnkr.co/edit/DSC4X3XaY7jWGu97meRk?p=preview

and here is my workaround: http://plnkr.co/edit/zPHj9XHQW2D1scM2ZBhj

post by K.D. on 12/09/2012