Streaming live at 10am (PST)

Ng-src custom attribute

I am using webflow to generate layouts that are used in an AngularJS app. As such, I am adding some angular-relevant custom attributes. I am using the downloaded zip file code.

There is a bug when I add an ng-src custom attribute on an img tag:

The src attribute of the image changes a global link i.e.

Without the ng-src custom attribute the url in the src returns to the normal relative link: images/filename.gif

There must be a parsing error when replacing the src of the img tag with the with the local link when there is a custom attribute ng-src. I would guess that it is because the custom attribute also contains the text src. Maybe an insufficient regex?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.