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為項目現場服務。