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

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

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

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

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

        在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指

        In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
          <tbody id='M3anj'></tbody>
            <bdo id='M3anj'></bdo><ul id='M3anj'></ul>
            <tfoot id='M3anj'></tfoot>

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

              <legend id='M3anj'><style id='M3anj'><dir id='M3anj'><q id='M3anj'></q></dir></style></legend>

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

                • 本文介紹了在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  創建一個基本指令很簡單:

                  Creating a basic directive is simple:

                  import {Component} from 'angular2/core';
                  
                  @Component({
                      selector: 'my-component',
                      template: '<div>Hello!</div>'
                  })
                  export class MyComponent {
                      constructor() {
                  
                      }
                  }
                  

                  這按預期工作.但是,如果我想在我的指令中使用 Ionic 組件,事情就會爆炸.

                  This works as expected. However, if I want to use Ionic components in my directive things blow up.

                  import {Component} from 'angular2/core';
                  
                  @Component({
                      selector: 'my-component',
                      template: '<ion-list><ion-item>I am an item</ion-item></ion-list>'
                  })
                  export class MyComponent {
                      constructor() {
                  
                      }
                  }
                  

                  指令已渲染,但 Ionic 組件未轉換,因此無法正常查看/工作.

                  The directive is rendered, but Ionic components are not transformed, and so wont look/work properly.

                  我找不到這方面的任何例子.我該怎么做?

                  I can't find any examples on this. How should I do this?

                  推薦答案

                  找到答案 這里:

                  您必須導入 Ionic 組件并將它們注冊為'指令'

                  You have to import the Ionic components and register them as 'directives'

                  所以我的第二個例子變成了:

                  So my second example becomes:

                  import {Component} from 'angular2/core';
                  import {List, Item} from 'ionic/ionic';
                  
                  @Component({
                      selector: 'my-component',
                      directives: [List, Item],
                      template: '<ion-list><ion-item>I am an item</ion-item></ion-list>'
                  })
                  export class MyComponent {
                      constructor() {
                  
                      }
                  }
                  

                  這篇關于在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 文件中找不到文件)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                  How to reload the ion-page after pop() in ionic2(如何在 ionic2 中的 pop() 之后重新加載離子頁面)
                  <i id='CXdYz'><tr id='CXdYz'><dt id='CXdYz'><q id='CXdYz'><span id='CXdYz'><b id='CXdYz'><form id='CXdYz'><ins id='CXdYz'></ins><ul id='CXdYz'></ul><sub id='CXdYz'></sub></form><legend id='CXdYz'></legend><bdo id='CXdYz'><pre id='CXdYz'><center id='CXdYz'></center></pre></bdo></b><th id='CXdYz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CXdYz'><tfoot id='CXdYz'></tfoot><dl id='CXdYz'><fieldset id='CXdYz'></fieldset></dl></div>
                    <tbody id='CXdYz'></tbody>

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

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

                            主站蜘蛛池模板: 亚洲视频免费在线观看 | a久久久久久 | 午夜寂寞福利视频 | 国产伦精品 | 欧美日韩在线一区二区 | 精品国产亚洲一区二区三区大结局 | 国产一区二区三区视频 | 国产一区二区三区四区三区四 | 欧美lesbianxxxxhd视频社区 | 国产91精品久久久久久久网曝门 | 97超碰成人 | 欧美一区二区在线视频 | 国产精品国产馆在线真实露脸 | 国内自拍真实伦在线观看 | 狠狠干综合视频 | 国产片淫级awww | 精品国产精品三级精品av网址 | 亚洲日韩中文字幕一区 | 国产欧美日韩综合精品一区二区 | 98久久| 欧美日韩在线电影 | 亚洲三区在线观看 | 91社区在线观看播放 | 亚洲国产精品一区二区www | 国产精品一区二区三区在线 | 日韩视频一区二区三区 | 久久香焦 | 亚洲a在线观看 | 久久久www成人免费精品 | 成人a在线 | 98久久 | 成人av激情| 日本成人免费观看 | 久久久久久久久久久福利观看 | 久久99深爱久久99精品 | 91影院 | 97久久精品午夜一区二区 | 国产最新精品视频 | 精品一区二区久久久久久久网精 | 国产精品欧美一区二区三区不卡 | 免费黄色av网站 |