I am using ng-repeat on an element like this:
{{aS
As @Jorg said, create a directive:
.directive('myCanvas', function(){
return {
scope: {
size: '=size'
},
template: '',
link: function(scope, elem, attrs){
alert(scope.size);
}
};
});
Then inside your ng-repeat
{{aSize}}
This was quickly written and untested, but hopefully you get the idea. Just remember that the example above is just one way of binding, depending on your requirements for aSize
(like can it be changed dynamically, etc).