Title: fix(compiler): directives pointing to forward ref should produce an error · Issue #3646 · angular/angular · GitHub
Open Graph Title: fix(compiler): directives pointing to forward ref should produce an error · Issue #3646 · angular/angular
X Title: fix(compiler): directives pointing to forward ref should produce an error · Issue #3646 · angular/angular
Description: If two components are defined in the same TypeScript/ES6 module, and one component depends on the other before it's defined, then the component will be undefined at runtime since classes are transpiled using assignment instead of hoistab...
Open Graph Description: If two components are defined in the same TypeScript/ES6 module, and one component depends on the other before it's defined, then the component will be undefined at runtime since classes are transp...
X Description: If two components are defined in the same TypeScript/ES6 module, and one component depends on the other before it's defined, then the component will be undefined at runtime since classes are tr...
Opengraph URL: https://github.com/angular/angular/issues/3646
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(compiler): directives pointing to forward ref should produce an error","articleBody":"If two components are defined in the same TypeScript/ES6 module, and one component depends on the other before it's defined, then the component will be undefined at runtime since classes are transpiled using assignment instead of hoistable declarations.\n\n``` typescript\n@Component({\n directives: [Child] //Child would be undefined at this point\n})\nclass ComponentOne {\n}\n\n@Directive(...)\nclass Child {\n}\n```\n\nThis should raise an error, instead of failing silently as it does now.\n\nCC: @mhevery \n","author":{"url":"https://github.com/jeffbcross","@type":"Person","name":"jeffbcross"},"datePublished":"2015-08-14T18:36:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/3646/angular/issues/3646"}
| 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:001dbf90-c01a-0ecf-c159-9a3545256667 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C78:1EB0:200454B:2D7FF81:6A5E1BA7 |
| html-safe-nonce | f7243d95c87af8085200ae6ad9e76100daca21a6e3a6e4af92bef1166261c6cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qzc4OjFFQjA6MjAwNDU0QjoyRDdGRjgxOjZBNUUxQkE3IiwidmlzaXRvcl9pZCI6IjYwNDE3ODA3MzEwMDUyNDYzNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6ddc4911dd0cb18b96b5fb070395b11008350da0306b4078187887f6f6dcb7b3 |
| hovercard-subject-tag | issue:101075377 |
| 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/3646/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06b5e504df6bc69f878ebe6145dea5f789b10d96d23b07c706e86304695bb67d/angular/angular/issues/3646 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06b5e504df6bc69f878ebe6145dea5f789b10d96d23b07c706e86304695bb67d/angular/angular/issues/3646 |
| og:image:alt | If two components are defined in the same TypeScript/ES6 module, and one component depends on the other before it's defined, then the component will be undefined at runtime since classes are transp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffbcross |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width