当前位置:网站首页>Inoic4 learning notes 2
Inoic4 learning notes 2
2022-07-24 18:23:00 【tongle_ deng】
0、 modular : Every tab It's just a module
1、 Introduction to core catalogue

2、 Routing core file app.module.ts Reading
// file : Root module tell Ionic How to assemble an application
//Ionic angular Core module
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
//ionic Pack it up app Configure the startup screen later , And the service of navigation bar ( Never mind )
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
// Introduce routing profile
import { AppRoutingModule } from './app-routing.module';
// Introduce the root component
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent], /** Declare components */
entryComponents: [],// Configure components that will not be used in the template
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],// Introduce dependency modules
providers: [// dependent service
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}3、 Execute process interpretation
When the page loads , Matching routing
app-routing.module.ts
It is loaded with routes tabs-routing.module.ts
tabs Modules are loaded inside tab1
4、 Create a module : stay app Create one under the folder tab4 Folder , There are relevant component files under the folder
ionic -g page tab45、 Button click jump function
<ion-button color="primary" [routerLink]="['/news']"> Jump to the news </ion-button>6、 Add a return button in the page header
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
边栏推荐
- 继承与派生
- Pytorch的旅程二:梯度下降
- Alibaba 1688 keyword search product API usage display
- 9. BOM object?
- 1. Typeof view variable type?
- Icml2022 Best Paper Award: learning protein reverse folding from millions of predicted structures
- 数组对象方法 常用遍历方法&高阶函数
- Techempower web framework performance test 21st round results release --asp Net core continue to move forward
- 2022 the latest short video de watermarking analysis API interface sharing
- 6. How to add an array in Es5?
猜你喜欢

Pycharm configuring opencv Library

Wechat applet

About the writing method of interface 1 chain interpretation 2. Method execution (finally) must be executed

Go language interface and type

Three ways of redis cluster

In depth analysis of the famous Alibaba cloud log4j vulnerability

微信小程序逆向

Maximum sum and promotion of continuous subarrays (2)

Handwritten blog platform ~ the next day

怎么解决idea中yaml无法识别或者飘红?
随机推荐
A practical scheme of realizing 0.5px on mobile terminal
Inheritance and Derive
空间三点画圆代码
2022最新短视频去水印解析API接口分享
jmeter --静默运行
【刷题记录】20. 有效的括号
Laravel notes - RSA encryption of user login password (improve system security)
Highcharts chart and report display, export data
Namespace:集群环境共享与隔离
Template inheritance and import
Space three point circle code
[OBS] dependency Library: x264 vs Build
Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it
[opencv] - thresholding
Growth of operation and maintenance Xiaobai - week 8 of Architecture
微信小程序逆向
Maximum sum and promotion of continuous subarrays (2)
6126. Design food scoring system
Date function format conversion
[verification] only numbers (positive and negative numbers) can be entered