Angular-CLI骨格に基づいたAngular 2アプリケーションを使用しています。このディレクトリにモジュールごとに1つのディレクトリを構成し、このモジュールに関連する各コンポーネントを同じフォルダに構成するという習慣がありました。内部モジュールフォルダを生成する
src
app
documents
document-list.component.ts
document-list.component.html
documents.component.ts
documents.component.html
document.module.ts
app.component.ts
app.module.ts
main.ts
今、私は角度-CLIを使用していることを、私は、各機能の利益を利用したいと思いますが、私は新しいコンポーネントを生成していたときに、どんな、それは私のコンポーネントのために新しいフォルダを作成しておくん私はちょうどそれを関連フォルダの中に入れたいと思っています。
src
app
documents
document-list
document-list.component.ts
document-list.component.html
documents.component.ts
documents.component.html
document.module.ts
app.component.ts
app.module.ts
main.ts
以前の構造を維持することは可能ですか?それは悪い習慣ですか?ガイドラインは無用なディレクトリの深さを避けることを推奨しています。
私の 'angular-cli.json'のデフォルトオプションとして定義する可能性はありますか? – Sakuto
今はないが、将来的に追加される可能性がある場合は、レポに問題を提出してください。 – Brocco