Title: AoT: inheritance error not reported correctly · Issue #16335 · angular/angular · GitHub
Open Graph Title: AoT: inheritance error not reported correctly · Issue #16335 · angular/angular
X Title: AoT: inheritance error not reported correctly · Issue #16335 · angular/angular
Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...
X Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/16335
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AoT: inheritance error not reported correctly","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...** (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nIf a component extends a class with implemented lifecycle hooks, they're not being called when building with aot (both in prod and dev). It's alright though when running ng build --prod --aot=false\r\n\r\n**Expected behavior**\r\nLifecycle hooks inheritance should be working\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n```\r\nimport { Component, OnInit } from '@angular/core';\r\n\r\nclass Foo implements OnInit {\r\n ngOnInit() {\r\n alert('Foo initialized');\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'app-root',\r\n template: 'App works',\r\n})\r\nexport class AppComponent extends Foo {}\r\n```\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\u003c!-- Describe the motivation or the concrete use case -->\r\n\r\n**Please tell us about your environment:**\r\nWindows 10\r\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\r\n\r\n* **Angular version:** 4.0.3\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\n* **Browser:** any\r\n \r\n* **Language:** TypeScript 2.3.0\r\n\r\n* **Node (for AoT issues):** `node --version` = 7.8.0\r\n","author":{"url":"https://github.com/dmitrysteblyuk","@type":"Person","name":"dmitrysteblyuk"},"datePublished":"2017-04-26T06:19:38Z","url":"https://github.com/angular/angular/issues/16335"}
| 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:e6bfeb40-6680-e8d2-e913-c6c85e81a122 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF0E:10DACD:942224:C6CADE:6B00E532 |
| html-safe-nonce | 77d231140ca2e6b755892cb4de63d9543fe8f7eb756f0784b758fd00a2d08f86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjBFOjEwREFDRDo5NDIyMjQ6QzZDQURFOjZCMDBFNTMyIiwidmlzaXRvcl9pZCI6Ijc0OTQ5NjM5MjIyNDkyNDk3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a23f6ff20838f2e6b8d31826079d2221d8463ee249c0e66dae75a1eb5df0fbe3 |
| hovercard-subject-tag | issue:224355456 |
| 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/16335/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f5e4d1ce44c2baf3019369390f00ed03696f1031fe13e173b6d22be7e26cbfb/angular/angular/issues/16335 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f5e4d1ce44c2baf3019369390f00ed03696f1031fe13e173b6d22be7e26cbfb/angular/angular/issues/16335 |
| og:image:alt | I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmitrysteblyuk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width