ionic-team / ionic-team/angular-toolkit

ionic generate modal

Open
#52 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
73
Forks
34
Avg merge
6m
Merged PRs (30d)
5

Description

# 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.