久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

  • <tfoot id='YMUJe'></tfoot>
      <i id='YMUJe'><tr id='YMUJe'><dt id='YMUJe'><q id='YMUJe'><span id='YMUJe'><b id='YMUJe'><form id='YMUJe'><ins id='YMUJe'></ins><ul id='YMUJe'></ul><sub id='YMUJe'></sub></form><legend id='YMUJe'></legend><bdo id='YMUJe'><pre id='YMUJe'><center id='YMUJe'></center></pre></bdo></b><th id='YMUJe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YMUJe'><tfoot id='YMUJe'></tfoot><dl id='YMUJe'><fieldset id='YMUJe'></fieldset></dl></div>
      <legend id='YMUJe'><style id='YMUJe'><dir id='YMUJe'><q id='YMUJe'></q></dir></style></legend>

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

        將 ViewChild 用于動態元素 - Angular 2 &amp;離子2

        Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)

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

            <tfoot id='W36Nx'></tfoot>

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

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

                  本文介紹了將 ViewChild 用于動態元素 - Angular 2 &amp;離子2的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想使用我動態添加的多個 IonicSlides.但我不能使用 @viewChild.請提出解決此問題的方法.

                  I want to use multiple IonicSlides that I added dynamically. But I can't use @viewChild. please suggest a way to resolve this problem.

                  模板.html:

                  <div *ngFor="let name of title;let i = index;">
                      <ion-slides  id="something" #slides>
                          //some code
                      </ion-slides>
                  </div
                  

                  Component.ts:

                    @ViewChild('slides') slides: QueryList<Slides>;
                  
                    ....
                  
                    ngAfterViewInit(){
                          setTimeout(()=>{
                                alert(this.slides.toArray()); //this line rise error 
                          }, 3000);
                    }
                  

                  錯誤:

                  _this.slides.toArray 不是函數

                  _this.slides.toArray is not a function

                  推薦答案

                  使用 @ViewChildren 代替 @ViewChild , 閱讀更多

                  Use @ViewChildren instead of @ViewChild , Read More

                  @ViewChild:

                  您可以使用 ViewChild 來獲取第一個元素或指令匹配視圖 DOM 中的選擇器.

                  You can use ViewChild to get the first element or the directive matching the selector from the view DOM.

                  @ViewChildren:

                  您可以使用 ViewChildren 獲取元素的 QueryList 或來自視圖 DOM 的指令.

                  You can use ViewChildren to get the QueryList of elements or directives from the view DOM.

                  這篇關于將 ViewChild 用于動態元素 - Angular 2 &amp;離子2的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                  How to reload the ion-page after pop() in ionic2(如何在 ionic2 中的 pop() 之后重新加載離子頁面)

                      1. <tfoot id='EF4Pu'></tfoot>

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

                      2. <i id='EF4Pu'><tr id='EF4Pu'><dt id='EF4Pu'><q id='EF4Pu'><span id='EF4Pu'><b id='EF4Pu'><form id='EF4Pu'><ins id='EF4Pu'></ins><ul id='EF4Pu'></ul><sub id='EF4Pu'></sub></form><legend id='EF4Pu'></legend><bdo id='EF4Pu'><pre id='EF4Pu'><center id='EF4Pu'></center></pre></bdo></b><th id='EF4Pu'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EF4Pu'><tfoot id='EF4Pu'></tfoot><dl id='EF4Pu'><fieldset id='EF4Pu'></fieldset></dl></div>

                            <tbody id='EF4Pu'></tbody>
                            <bdo id='EF4Pu'></bdo><ul id='EF4Pu'></ul>

                            <legend id='EF4Pu'><style id='EF4Pu'><dir id='EF4Pu'><q id='EF4Pu'></q></dir></style></legend>
                            主站蜘蛛池模板: 自拍视频精品 | 国产视频福利在线观看 | 亚洲精品电影在线观看 | 精品亚洲一区二区 | 亚洲精品一区二区三区四区高清 | 久久99视频精品 | 欧美一区二区免费 | 久久免费大片 | 欧美在线视频网 | 亚洲精品电影在线观看 | 国产精品综合色区在线观看 | 日韩中文在线观看 | 91精品国产综合久久久亚洲 | 日韩av成人在线 | 狠狠干2020 | 国产精品免费观看 | 手机在线观看av | 有码在线| 国产精品美女久久久久aⅴ国产馆 | 亚洲不卡| av一区二区三区 | 9久久精品 | 国产日韩欧美在线观看 | 国产欧美精品区一区二区三区 | 精品一区二区在线观看 | 操人网站 | 日韩欧美三级电影在线观看 | 国产精品一二三区 | 国产一区二区三区在线免费观看 | 国产精品成人一区二区三区夜夜夜 | 精品国产乱码久久久久久果冻传媒 | 一区二区在线看 | 91九色在线观看 | 国产一级淫片免费视频 | 一区二区三区中文 | 亚洲在线视频 | 日本久久福利 | 欧美电影免费网站 | 成av人电影在线 | 欧美一区免费在线观看 | 亚洲成人一区 |