久久久久久久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>
                            主站蜘蛛池模板: www97影院| 免费在线观看成年人视频 | 亚洲毛片网站 | 久久久久免费精品国产 | 亚洲三级免费看 | 男人的天堂中文字幕 | 欧美综合国产精品久久丁香 | 超碰在线97国产 | 国产精品伦一区二区三级视频 | 午夜在线视频一区二区三区 | 午夜视频网站 | 99热首页| 欧美一区二区三区的 | 欧美影院久久 | 罗宾被扒开腿做同人网站 | 亚洲va欧美va天堂v国产综合 | 99re视频在线| 天天天操操操 | 日韩网站在线观看 | 久久精品亚洲一区 | 亚洲欧美一区二区在线观看 | 一级毛片视频在线 | 狠狠久久 | www4虎| 亚洲日产精品 | 国产欧美精品一区二区三区 | 一区二区三区精品在线 | 区一区二在线观看 | 国产精品一区在线 | 久久久久成人精品免费播放动漫 | 综合中文字幕 | 欧美一区二区三区在线播放 | 国产一区二区在线播放视频 | 农村黄性色生活片 | 91亚洲免费| 国产一二三区电影 | 日产久久| 激情在线视频网站 | 国产一区二区三区在线看 | 91高清免费 | 精品国产乱码久久久久久丨区2区 |