0

Are there any differences? Which is better for what occasion? The only one case I'm aware of could only use attr.x is in templateUrl, because at this stage scope hasn't been initialised yet:

templateUrl: function (element, attr) {
    return attr.url;
}

Are there other cases that these two are not interchangeable?

Lucia
  • 12,077
  • 6
  • 39
  • 50

0 Answers0