ionic-team / ionic-team/angular-toolkit

ionic generate modal

Abierto
#52 0 comentarios 1 reacción 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
TypeScript
Estrellas
73
Forks
34
Merge medio
6 min
PR fusionados (30 d)
5

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.