2

I have written the following code:

<div class="item item-input video-preview-container" ng-if="thumbnail.length > 0">
                <video poster="{{thumbnail}}" ng-src="{{clipSrc}}" class="centerme margin-vert-2x" controls="controls" preload="metadata" webkit-playsinline="webkit-playsinline"></video>
                <i class="ion ion-android-cancel fs30 margin-left-2x" ng-click="removeVideo()"></i>
            </div>

now on running this i am getting error:

GET http://localhost:8100/%7B%7Bthumbnail%7D%7D 404 (Not Found)

however it is noticeable that the error is coming when my div isn't yet loaded as my ng-if condition is still less than 0

UPDATE: the problem is with poster="{{thumbnail}}" code as when i remove this the error is not coming.

abhit
  • 973
  • 3
  • 17
  • 40

1 Answers1

6

Have you tried using ng-attr-poster ? Most of time these problems are due to data binding not happening