javascript - angularjs expression didn't execute properly -
my html
{{myid}} <iframe width="100%" height="325" src="http://example.com/direct/?param={{myid}}" frameborder="0" allowfullscreen></iframe>
the first {{myid}} worked second didn't. when check dom it's still {{myid}}, why?
please try ng-src instead src:
<iframe width="100%" height="325" ng-src="http://example.com/direct/?param={{myid}}" frameborder="0" allowfullscreen></iframe>
Comments
Post a Comment