ionic-team / ionic-team/angular-toolkit

ionic generate modal

未关闭
#52 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
73
派生
34
平均合并
6 分钟
30 天内合并 PR
5

描述

# Feature Request

#### Describe the Feature Request
I think it would be great to generate a modal. It should add `Modal` suffix instead of `Component` for the modal class name. Plus, in case it's an angular app, it would add the modal to `entryComponents`.

#### Describe Preferred Solution
```
ionic generate modal MODAL_PATH
```

#### Describe Alternatives
1. `ionic g c my-modal`
2. refactor `MyModalComponent` to `MyModal`
3. add `MyModal` to `app.module.ts > entryComponents`

#### Concerns:
It would be a problem to do `ionic g m my-modal` since `m` is for module.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。