- Hybrid Mobile Development with Ionic
- Gaurav Saini
- 108字
- 2021-07-02 23:53:52
Generating components
The ionic generate command create new pipes, components, pages, directive and providers. Also, this will create entry inside you app.module.ts for example if you create have created a provider it will be imported in app.module.ts and injected in providers. Once you create any of the page, component, directive, or pipe you will see a folder create with it TypeScript file where you can now start writing your logic:
$ ionic generate [type] [name]
- [--type]: Type of generator such as page, directive, and pipe
- [--name]: Name of the component generated
// Some example commands
$ ionic generate pipe NumberPipe
$ ionic generate page About
推薦閱讀
- 軟件安全技術
- Implementing Modern DevOps
- Rust實戰
- 算法精粹:經典計算機科學問題的Java實現
- Securing WebLogic Server 12c
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- Android驅動開發權威指南
- 創意UI:Photoshop玩轉APP設計
- 人工智能算法(卷1):基礎算法
- 計算機應用基礎(第二版)
- WordPress Search Engine Optimization(Second Edition)
- Clojure Web Development Essentials
- 零基礎學編程系列(全5冊)
- JavaScript設計模式與開發實踐
- Practical Time Series Analysis