I am trying to embed youtube videoes using the object tag instead of iframes. However, it doesn't work even though element.url points to the correct url. If I replace {{element.url}} (in object tag) with just the url, it works just fine. The iframe works as it is.
<div ng-show="element.url" id="resourceFrame">
<iframe class="iframe" width="500" height="325" src="{{element.url}}" frameborder="0" allowfullscreen></iframe>
<object width="500" height="325" >
<param
name="{{element.name}}"
value="{{element.url}}">
</param>
<param
name="allowscriptaccess"
value="always">
</param>
<param
name="allowFullScreen"
value="true">
</param>
<embed
src="{{element.url}}"
type="application/x-shockwave-flash"
allowscriptaccess="always"
allowfullscreen="true"
width="500"
height="325">
</embed>
</object>
<div id="text-content" ng-show="element.text">
<p>{{element.text}}</p>
</div>
</div>
Why does {{element.url}} work in iframe, but not object tag?