I came a cross this line of code in a fiddler. I have never seen this before, can anyone explain what exactly it is doing and why the var NGREPEAT_SOURCE_RE = a comment?
var NGREPEAT_SOURCE_RE = '<!-- ngRepeat: ((.*) in ((.*?)( track by (.*))?)) -->';
Looks to me like that code is a regular expression designed to match the default comment angular puts in to the html when expanding an
<!-- ngRepeat: <item> in <iterator> track by <someUniqueProp> -->
track by <someUniqueProp> are optional, hence the
? in the regex. So someone's using it to search for ng-repeats in their html. :)