- 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
- SoapUI Cookbook
- JavaScript高效圖形編程
- Docker進階與實戰
- Learning Linux Binary Analysis
- PHP 編程從入門到實踐
- Python數據挖掘與機器學習實戰
- Teaching with Google Classroom
- Bootstrap 4 Cookbook
- Building Android UIs with Custom Views
- Natural Language Processing with Java and LingPipe Cookbook
- The Professional ScrumMaster’s Handbook
- Practical Game Design with Unity and Playmaker
- Maven for Eclipse
- Go Systems Programming