Title: [Feature Request] Better --module resolution for all generated types · Issue #5461 · angular/angular-cli · GitHub
Open Graph Title: [Feature Request] Better --module resolution for all generated types · Issue #5461 · angular/angular-cli
X Title: [Feature Request] Better --module resolution for all generated types · Issue #5461 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type with a module, the user has to specify t...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type ...
X Description: Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type ...
Opengraph URL: https://github.com/angular/angular-cli/issues/5461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature Request] Better --module resolution for all generated types","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] feature request\r\n```\r\n\r\n### Prerequisite \r\nGiven a project\r\n```\r\nng new test-proj\r\nng g m foo\r\nng g m foo/bar\r\n```\r\n\r\n### Current functionality.\r\nWhen a user wants to pair a type with a module, the user has to specify the full path to the module, like so:\r\n```\r\nng g s baz --module=foo/foo.module\r\n```\r\nor\r\n```\r\nng g s baz --module=foo/foo.module.ts\r\n```\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nA user should also be able to enter the following command\r\n```\r\nng g s baz --module=foo\r\n```\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\nCurrently, the CLI will error when it can't find the module with\r\n```\r\nModule specified does not exist\r\n```\r\n\r\nWhen given\r\n```\r\nng g s baz --module=foo\r\n```\r\nthe CLI should preform the following module resolution\r\n```\r\nsrc/app/foo.module.ts\r\nsrc/app/foo/foo.module.ts\r\nError: Module specified does not exist\r\n```\r\n\r\nThis should not be exclusive to top level directories. This scenario should work as well.\r\n\r\nWhen given\r\n```\r\nng g s baz --module=foo/bar\r\n```\r\nthe CLI should preform the following module resolution\r\n```\r\nsrc/app/foo/bar.module.ts\r\nsrc/app/foo/bar/bar.module.ts\r\nError: Module specified does not exist\r\n```\r\n","author":{"url":"https://github.com/delasteve","@type":"Person","name":"delasteve"},"datePublished":"2017-03-17T00:41:25Z","url":"https://github.com/angular/angular-cli/issues/5461"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cce16e58-409d-f778-0912-e3b38da42e25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCCE:1148D3:3F025EE:504A853:6B021F41 |
| html-safe-nonce | 7c542f16d05b1349435c18d26dfdb68c5fadbf5afa0396c61bdd6c876d0e47ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0NFOjExNDhEMzozRjAyNUVFOjUwNEE4NTM6NkIwMjFGNDEiLCJ2aXNpdG9yX2lkIjoiNDk0OTA5MTM5MjUwMTcxODg1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 469e814ca2e8c64c8a73b217f3b147daadf7df2ca276f286e7a1f5654417111e |
| hovercard-subject-tag | issue:214878239 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/5461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91b9c3893885c49dacc3872a8ba215bac54ce4f2b920f19754edc80cbaf4365b/angular/angular-cli/issues/5461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91b9c3893885c49dacc3872a8ba215bac54ce4f2b920f19754edc80cbaf4365b/angular/angular-cli/issues/5461 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | delasteve |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width