当前位置:网站首页>Ionic4 learning notes 5-- custom public module
Ionic4 learning notes 5-- custom public module
2022-07-24 18:24:00 【tongle_ deng】
ionic4 The middle page is composed of modules , Multiple modules cannot share one component .
If you want to use public components , You need to package components into modules , Let the module reference the module , To achieve the purpose of common components , In order to achieve function sharing .
1、 Create common modules and components
ionic g module module/slide // Create a module 
ionic g component module/slide // Create components 
2、 On the outside tab1,tab2,tab3 Use this module in
2.1 To treat it as it needs to expose it first

2.2 Introduce custom modules where they are used , And dependency injection custom modules

3. stay tab1 Of html It can be used in the page
<app-slide></app-slide>
边栏推荐
- 下拉列表组件使用 iScroll.js 实现滚动效果遇到的坑
- CF Lomsat gelral(启发式合并)
- MySQL configuration file
- 排序的几种方式for while 还有sort
- Namespace: cluster environment sharing and isolation
- 2. JS variable type conversion, automatic conversion, manual conversion, what is the difference between parseint(), parsefloat(), number()?
- Alibaba /166 obtains the API instructions for all products in the store
- Common methods of array (2)
- 【obs】视频、音频编码与rtmp发送的配合
- Bib | mol2context vec: context aware deep network model learning molecular representation for drug discovery
猜你喜欢

Simulation implementation vector

Number of times a number appears in an ascending array

The drop-down list component uses iscrol JS to achieve the rolling effect of the pit encountered

JMeter -- silent operation

【obs】依赖库: x264 vs 构建

Flink operation Hudi data table

Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it

Maximum sum and promotion of continuous subarrays (2)

7. Character coding?
![[opencv] - thresholding](/img/4e/88c8c8063de7cb10e44e76e77dbb8e.png)
[opencv] - thresholding
随机推荐
Has polardb for PostgreSQL entered the list of Xinchuang database?
Handwritten blog platform ~ the next day
ORM introduction and database operation
Emerging potential of interactive virtual reality technology in drug discovery
Section 9 cache penetration follow Daewoo redis ------- directory posts
Is the validity period of the root certificate as long as the server SSL certificate?
pycharm配置opencv库
How to render millions of 2D objects smoothly with webgpu?
Get the original data API on 1688app
怎么解决idea中yaml无法识别或者飘红?
2022最新短视频去水印解析API接口分享
缺失值处理
13. What is the difference between onkeydown, up and onkeypress?
CF lomsat gelral (heuristic merge)
继承与派生
可撤销并查集板子
Get familiar with pytoch and pytoch environment configuration
Install jumpserver
5. Reference type and value type as function parameters?
【“码”力全开,“章”显实力】2022年第1季Task挑战赛贡献者榜单