<tfoot id='ByDh0'></tfoot>
      <legend id='ByDh0'><style id='ByDh0'><dir id='ByDh0'><q id='ByDh0'></q></dir></style></legend>

        • <bdo id='ByDh0'></bdo><ul id='ByDh0'></ul>

      1. <small id='ByDh0'></small><noframes id='ByDh0'>

        <i id='ByDh0'><tr id='ByDh0'><dt id='ByDh0'><q id='ByDh0'><span id='ByDh0'><b id='ByDh0'><form id='ByDh0'><ins id='ByDh0'></ins><ul id='ByDh0'></ul><sub id='ByDh0'></sub></form><legend id='ByDh0'></legend><bdo id='ByDh0'><pre id='ByDh0'><center id='ByDh0'></center></pre></bdo></b><th id='ByDh0'></th></span></q></dt></tr></i><div id='ByDh0'><tfoot id='ByDh0'></tfoot><dl id='ByDh0'><fieldset id='ByDh0'></fieldset></dl></div>

        带有 iframe 的 AngularJs

        AngularJs with iframe(带有 iframe 的 AngularJs)

        <small id='TOA75'></small><noframes id='TOA75'>

        1. <tfoot id='TOA75'></tfoot>
                <tbody id='TOA75'></tbody>
              <i id='TOA75'><tr id='TOA75'><dt id='TOA75'><q id='TOA75'><span id='TOA75'><b id='TOA75'><form id='TOA75'><ins id='TOA75'></ins><ul id='TOA75'></ul><sub id='TOA75'></sub></form><legend id='TOA75'></legend><bdo id='TOA75'><pre id='TOA75'><center id='TOA75'></center></pre></bdo></b><th id='TOA75'></th></span></q></dt></tr></i><div id='TOA75'><tfoot id='TOA75'></tfoot><dl id='TOA75'><fieldset id='TOA75'></fieldset></dl></div>

                <bdo id='TOA75'></bdo><ul id='TOA75'></ul>
                <legend id='TOA75'><style id='TOA75'><dir id='TOA75'><q id='TOA75'></q></dir></style></legend>

                1. 本文介绍了带有 iframe 的 AngularJs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  为什么 这个 jsfiddle 不起作用?我无法获得 videoId 的值.如果我从模块中删除 ngRoute 那么它工作正常.

                  Why this jsfiddle is not working? I am not able to get value of videoId. If I remove ngRoute from module then it is working fine.

                  推荐答案

                  你需要像这样使用ng-src:

                  <div ng-controller="AppController">
                      <h1>{{videoID}}</h1>
                      <iframe class="youtube-player" type="text/html" width="auto"
                      height="auto" ng-src="{{videoID}}"
                      allowfullscreen="" frameborder="0"> </iframe>
                  </div>
                  

                  var app = angular.module('my-app', []);
                  app.controller('AppController', function ($scope, $sce) {  
                      $scope.videoID = $sce.trustAsResourceUrl('http://www.youtube.com/embed/C0DPdy98e4c');
                  });
                  

                  请参阅本文档.

                  这篇关于带有 iframe 的 AngularJs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pause youtube video, youtube api(暂停 youtube 视频,youtube api)
                  Youtube iframe api not triggering onYouTubeIframeAPIReady(Youtube iframe api 未触发 onYouTubeIframeAPIReady)
                  How can I stop a video with Javascript in Youtube?(如何在 Youtube 中停止使用 Javascript 的视频?)
                  Embed YouTube video - Refused to display in a frame because it set #39;X-Frame-Options#39; to #39;SAMEORIGIN#39;(嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options设置为“SAMEORIGIN)
                  How to call Greasemonkey#39;s GM_ functions from code that must run in the target page scope?(如何从必须在目标页面范围内运行的代码中调用 Greasemonkey 的 GM_ 函数?)
                  How do you mute an embedded Youtube player?(如何使嵌入式 Youtube 播放器静音?)
                      <tbody id='OCFJZ'></tbody>

                    1. <small id='OCFJZ'></small><noframes id='OCFJZ'>

                      <legend id='OCFJZ'><style id='OCFJZ'><dir id='OCFJZ'><q id='OCFJZ'></q></dir></style></legend><tfoot id='OCFJZ'></tfoot>
                        <bdo id='OCFJZ'></bdo><ul id='OCFJZ'></ul>

                          <i id='OCFJZ'><tr id='OCFJZ'><dt id='OCFJZ'><q id='OCFJZ'><span id='OCFJZ'><b id='OCFJZ'><form id='OCFJZ'><ins id='OCFJZ'></ins><ul id='OCFJZ'></ul><sub id='OCFJZ'></sub></form><legend id='OCFJZ'></legend><bdo id='OCFJZ'><pre id='OCFJZ'><center id='OCFJZ'></center></pre></bdo></b><th id='OCFJZ'></th></span></q></dt></tr></i><div id='OCFJZ'><tfoot id='OCFJZ'></tfoot><dl id='OCFJZ'><fieldset id='OCFJZ'></fieldset></dl></div>