Hi Eric,
The simplest way is to write your own ngRepeat at an higher priority, and just amend it.
something like this:
function ngRepeat($compile, $parse) {
var ddo = {
restrict: 'A',
priority: 1010,
terminal: true, //stop Compilation
compile: compile
};
return ddo;
function compile(el, attr) {
attr.$set('ngRepeat', attr.ngRepeat + ' track by $index');
var ngModelLink = $compile(el, null, 1010); //restart compilation at priority 9999
return function(scope) {
ngModelLink(scope); // use the link function from the compilation
};
}
}
See it in action in this plunk
Does that help a bit?
Regards
Sander
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/I9bz6MmeX1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.