angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Using a certain number of ng-src attributes on a page cause it to go blank

Open BrianTheCoder opened this issue 12 years ago • 7 comments

I've been able to reproduce this a few times, but for some reason when I have a certain number of ng-src attributes on a given page, the page blanks out. Seems to be only when used in the context of an ng-repeat loop. This only seems to happen on chrome too, the same page looks fine in firefox. It works fine up until I add an ng-src or src attribute.

Here's the directive that caused it https://gist.github.com/BrianTheCoder/e31a8cace1cc68f77e29

If it will be helpful, I can spin up an instance with the bug on it, obviously we have it disabled on our staging and production servers. Let me know anything else I can do to help.

BrianTheCoder avatar Oct 21 '14 16:10 BrianTheCoder

I guess you could try to reproduce the problem in a http://plnkr.co or similar.

Narretz avatar Oct 21 '14 17:10 Narretz

Will give that a shot.

brianthecoder

brianthecoder.com | tridaily.com | useporter.com | 20jeans http://20jeans.com

On Tue, Oct 21, 2014 at 10:28 AM, Narretz [email protected] wrote:

I guess you could try to reproduce the problem in a http://plnkr.co or similar.

— Reply to this email directly or view it on GitHub https://github.com/angular/angular.js/issues/9733#issuecomment-59964817.

BrianTheCoder avatar Oct 21 '14 17:10 BrianTheCoder

I tried to get an example working, but was having trouble with the tool and had to give up after a few hours. I am the only full time developer at my startup and have spent the better part of 5 days trying to get this one, very simple, feature working. I just cannot afford to spend anymore time on this an will just have to rip out angular. If you want I can spin up an instance with the broken code, I have that automated. I just cannot justify anymore time on this when I have a queue of things that need to be done. I am week behind now. Sorry

BrianTheCoder avatar Oct 22 '14 17:10 BrianTheCoder

You can link to an instance with the broken behavior, I'll have a look. But since it's not a minimal example, it's doubtful if that error will reveal itself easily. Were there no errors in the console or anything?

Narretz avatar Oct 22 '14 17:10 Narretz

No errors at all, but I can easily reproduce it on the page. Having a src or ng-src on the image will blank out the page, but if I remove the attribute, the page works fine. Working on getting the instance up now.

BrianTheCoder avatar Oct 22 '14 17:10 BrianTheCoder

I just put it up on our staging site for now. Here's an example (open in chrome) https://staging.dstld.la/products/high-waisted-skinny-jeans-in-black-powerstretch

BrianTheCoder avatar Oct 22 '14 18:10 BrianTheCoder

I think there's something else going on, going to close this. Looks it may be an issue with Chrome itself.

BrianTheCoder avatar Oct 22 '14 18:10 BrianTheCoder