官术网_书友最值得收藏!

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
主站蜘蛛池模板: 舟曲县| 大名县| 敦化市| 太和县| 磴口县| 汝阳县| 图木舒克市| 商洛市| 克山县| 淮滨县| 金堂县| 舟曲县| 中阳县| 醴陵市| 福贡县| 乌苏市| 宣化县| 抚顺市| 沭阳县| 无锡市| 临夏县| 秀山| 桐城市| 会理县| 平凉市| 纳雍县| 色达县| 南雄市| 漳浦县| 枝江市| 辉县市| 睢宁县| 庄浪县| 潜山县| 昆明市| 共和县| 中江县| 济宁市| 肃宁县| 甘洛县| 图们市|