Hi Al,

You are hitting a couple of edge-cases off the angular compiler 
<https://raw.githubusercontent.com/angular/angular.js/master/src/ng/compile.js>,
 
just look at the linked source :)
As Jamie said you can not interpolate attributes this way.
In conjunction with your other messages I’m not sure you are on the right 
path.

There is a simple way around to get the result you want, just do some 
simple string manipulation.

var tmpl='';
scope.iconList.forEach(function (icon){
   tmpl+='<span '+icon.type+' data-item-id="' + itemId + '" data-icon="' + 
icon.name + '" class="ng-scope"></span>'
})

Just some simple string manipulation, this is also way lighter on the 
browser.

Does this help you a bit?
Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to