Title: Add project source dir as a module · Issue #1465 · angular/angular-cli · GitHub
Open Graph Title: Add project source dir as a module · Issue #1465 · angular/angular-cli
X Title: Add project source dir as a module · Issue #1465 · angular/angular-cli
Description: It would be very useful to be able to address components via a relative path starting at the project root. A way to do this is to consider the project root as a special project, as if it was inside of node_modules as far as resolution is...
Open Graph Description: It would be very useful to be able to address components via a relative path starting at the project root. A way to do this is to consider the project root as a special project, as if it was inside...
X Description: It would be very useful to be able to address components via a relative path starting at the project root. A way to do this is to consider the project root as a special project, as if it was inside...
Opengraph URL: https://github.com/angular/angular-cli/issues/1465
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add project source dir as a module","articleBody":"It would be very useful to be able to address components via a relative path starting at the project root. A way to do this is to consider the project root as a special project, as if it was inside of `node_modules` as far as resolution is concerned.\n\nSuch a design greatly reinforces the 'app as a library' idea, and plays nice with most module loading scheme.\n\nA proposed name is `@app` but configurable via `angular-cli.json`, where `app` is the project prefix specified in `ng new --prefix app` (this exists already and defaults to `app`).\n\nExample:\n\n```\n// instead of \nimport { something } from '../../../../../../../shared/something';\n// we could do\nimport { something } from '@app/shared/something';\n```\n\nThis would also work for CSS preprocessors.\n\nSuch implementation would address https://github.com/angular/angular-cli/issues/865 and also greatly reduce the need for https://github.com/angular/angular-cli/issues/900.\n","author":{"url":"https://github.com/filipesilva","@type":"Person","name":"filipesilva"},"datePublished":"2016-07-27T16:30:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":50},"url":"https://github.com/1465/angular-cli/issues/1465"}
| 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:5c981be0-cf81-dcba-6114-e560d7aa6b38 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA7C:9A812:FF453C:1491E40:6976D466 |
| html-safe-nonce | 273bd2793db5b7d8c513e6576b2facec1b187c350d610dda65bd01a6c4c947e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTdDOjlBODEyOkZGNDUzQzoxNDkxRTQwOjY5NzZENDY2IiwidmlzaXRvcl9pZCI6Ijg1OTk0OTg2MDExNzQzMjQzMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c65cf01b23d70996ba2431989347abf17908b652d24c753253551f1777c0426 |
| hovercard-subject-tag | issue:167898558 |
| 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/1465/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f89666cd5aa8d3ace09a1b60d06175947f9040561f6b36d7738881f9f38f6d77/angular/angular-cli/issues/1465 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f89666cd5aa8d3ace09a1b60d06175947f9040561f6b36d7738881f9f38f6d77/angular/angular-cli/issues/1465 |
| og:image:alt | It would be very useful to be able to address components via a relative path starting at the project root. A way to do this is to consider the project root as a special project, as if it was inside... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | filipesilva |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width