>>>Using 'ng-src' rather than 'src' might be enough. If not then I'd suggest pre-computing the value returned by your getImageData() method, storing that as an additional property of the dailyCodes model and using that property name as the ng-src.
>>
>>I think pre-computing sounds a better idea, so I'll add it to my view model and adjust the code to get it as a property instead.
>
>You should still use ng-src rather than src....... :
https://docs.angularjs.org/api/ng/directive/ngSrcYes, definitely. I am keeping ng-src. I just think that using property will be quicker. I can also try using one way binding with ::
If it's not broken, fix it until it is.
My Blog