brandly / angular-adaptive-backgrounds

:sunrise_over_mountains: Surround a picture with its dominant color using a simple directive

Home Page:http://brandly.github.io/angular-adaptive-backgrounds/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: Cannot read property '0' of null

DingGGu opened this issue · comments

i've got error some specific images.

Uncaught TypeError: Cannot read property '0' of null

source:

<div adaptive-background>
   <img ng-src="{{data.data.cover == '0' && '/images/cover.jpg' || '/res/cover/'  + data.data.key + '.jpg'}}" width="300" />
</div>

image:
image

i saved that photo to my computer and tried testing it locally. i don't see any error!

what line was that error thrown on?

I Solved it.
thanks