ionic-team / ionic-team/angular-toolkit

ionic generate modal

Offen
#52 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
73
Forks
34
Ø Merge
6 Min.
Gemergte PRs (30 T.)
5

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the existing component-generation schematic and the command registration for `ionic generate`. Trace how an Angular app is detected and how generated declarations are configured; done means `ionic generate modal MODAL_PATH` produces the requested `Modal`-suffixed class and adds it to `entryComponents` when applicable.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
cli, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.