ionic-team / ionic-team/angular-toolkit

ionic generate modal

Aperta
#52 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
73
Fork
34
Merge medio
6m
PR unite (30g)
5

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.