ionic 4 components
0.9.6

离子4的可服装UI组件。
文档|组件演示|入门|取得联系





要开始,请从NPM安装软件包。最新版本支持离子4和Angular> = 7。
您可以使用NPM或纱线来安装NPM的@fivethree/core 。
npm install --save @fivethree/core @angular/animations安装软件包后,在app.module.ts中导入BrowserAnimationsModule :
import { NgModule } from '@angular/core' ;
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
@ NgModule ( {
imports : [
...
BrowserAnimationsModule ,
...
]
} )
export class AppModule { } 要使用UI库将功能模块之一(例如FivgalleryModule)导入到页面或组件模块中。
例如:
import { NgModule } from '@angular/core' ;
import { CommonModule } from '@angular/common' ;
import { IonicModule } from '@ionic/angular' ;
import { FormsModule } from '@angular/forms' ;
import { RouterModule } from '@angular/router' ;
import { FivGalleryModule } from '@fivethree/core' ;
import { HomePage } from './home.page' ;
@ NgModule ( {
imports : [
CommonModule ,
FormsModule ,
IonicModule ,
RouterModule . forChild ( [
{
path : '' ,
component : HomePage
}
] ) ,
FivGalleryModule
] ,
declarations : [ HomePage ]
} )
export class HomePageModule { } 该软件包正在积极构造中。
ng build core以重建组件库。ionic s为项目现场服务。