Page 1 of 1

[Ionic] HTML Component ng-src

Posted: Mon Mar 28, 2016 2:20 pm
by taucher

Hello,

I have a html component inside card component which is for video tag. But i couldn't bind dynamic url with ng-model or ng-src inside html content.

For example:
Here is my html component content:
code
<video width="100%" poster="" preload="metadata" controls webkit-playsinline
ng-src="{{link&#46;url}}">
</video>
%children%
/code

But console throws error :
Image

Thanks,


[Ionic] HTML Component ng-src

Posted: Wed Mar 30, 2016 8:22 am
by Serhii Kulibaba

Hello,

Please open the link from that error - it should help you.
Did you create a scope variable "link" with the property "url"?


[Ionic] HTML Component ng-src

Posted: Wed Mar 30, 2016 8:34 am
by taucher

Hi Sergiy,

I solved the issues. It was angularjs security check.

I wrote the solution to this topic:

https://getsatisfaction.com/apperyio/topics/-ionic-video-component-or-video-inside-card

Thanks,