官网:https://ionicframework.com/docs/intro
安装:
npm install @ionic/angular@latest --save
使用:
(1)在app.module.ts文件中引入
import { IonicModule } from "@ionic/angular";
(2)添加到 AppModule 的 imports 数组中
imports: [
AppRoutingModule,
IonicModule,
BrowserModule
]
(3)具体内容如下:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { IonicModule } from "@ionic/angular";
import { AppComponent } from './app.component';
import { FooterGuideComponent } from './components/footer-guide/footer-guide.component';
import { AppRoutingModule } from './app-routin