Created
February 22, 2018 21:17
-
-
Save diegorribeiro/6b560ffc2be960a65e521ddcfed7ba4a to your computer and use it in GitHub Desktop.
$ ionic generate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Synopsis | |
$ ionic generate [<type>] [<name>] | |
Details | |
Automatically create components for your Ionic app. | |
The given name is normalized into an appropriate naming convention. For example, ionic generate page neat creates a page by the name of NeatPage in src/pages/neat/. | |
Input Description | |
type The type of generator (e.g. component, directive, page, pipe, provider, tabs) | |
name The name of the component being generated | |
Option Description | |
--no-module Do not generate an NgModule for the component | |
--constants Generate a page constant file for lazy-loaded pages | |
Examples: | |
$ ionic generate | |
$ ionic generate component | |
$ ionic generate directive | |
$ ionic generate page | |
$ ionic generate pipe | |
$ ionic generate provider | |
$ ionic generate tabs | |
$ ionic generate component foo | |
$ ionic generate page Login | |
$ ionic generate page Detail --no-module | |
$ ionic generate page About --constants | |
$ ionic generate pipe MyFilterPipe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment