AngularJS template evaluate concat expression vs auto-concat using curly braces?

51 Views Asked by At

In an angular template, how can I evaluate what of this two options is better?

  1. <img ng-src="{{filteredImgs[imgIdx].signed_src}}&width=1000">

  2. <img ng-src="{{filteredImgs[imgIdx].signed_src + '&width=1000'}}">

I would like to see if there are differences when dealing with errors, or performance implications between both alternatives, but I could not find the source of where those two are evaluated. (I suspect this is in angular template evaluation core)

0

There are 0 best solutions below