Title: Tour of Heroes Tutorial Step 5 Missing Steps · Issue #23865 · angular/angular · GitHub
Open Graph Title: Tour of Heroes Tutorial Step 5 Missing Steps · Issue #23865 · angular/angular
X Title: Tour of Heroes Tutorial Step 5 Missing Steps · Issue #23865 · angular/angular
Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [ ] Feature request [ x] Documentation issue or request [ ] Support request => Please do not subm...
Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [ ] Feature request [ x] Documentation issue or request [...
X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [ ] Feature request [ x] Documentation issue or reque...
Opengraph URL: https://github.com/angular/angular/issues/23865
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tour of Heroes Tutorial Step 5 Missing Steps","articleBody":"\u003c!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n\u003cpre>\u003ccode>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[ ] Bug report \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Performance issue\r\n[ ] Feature request\r\n[ x] Documentation issue or 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[ ] Other... Please describe:\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nIf I follow the instructions in the Heroes tutorial, at the end of Part 5 I get this error when loading the page:\r\n\r\n```\r\nError: Template parse errors:\r\nCan't bind to 'hero' since it isn't a known property of 'app-hero-detail'.\r\n1. If 'app-hero-detail' is an Angular component and it has 'hero' input, then verify that it is part of this module.\r\n2. If 'app-hero-detail' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\r\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. (\"\r\n\u003c/ul>\r\n\r\n\r\n\r\n\u003capp-hero-detail [ERROR ->][hero]=\"selectedHero\">\u003c/app-hero-detail>\r\n\r\n\"): ng:///AppModule/HeroesComponent.html@10:17\r\n'app-hero-detail' is not a known element:\r\n1. If 'app-hero-detail' is an Angular component, then verify that it is part of this module.\r\n2. If 'app-hero-detail' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (\"\r\n\u003c/ul>\r\n\r\n\r\n\r\n[ERROR ->]\u003capp-hero-detail [hero]=\"selectedHero\">\u003c/app-hero-detail>\r\n\r\n\"): ng:///AppModule/HeroesComponent.html@10:0\r\n```\r\n\r\nI was able to correct this myself by adding the following to the `app.module.ts`:\r\n\r\n```\r\nimport { HeroDetailComponent } from './hero-detail/hero-detail.component';\r\n```\r\n\r\nAnd modified the declarations to include `HeroDetailComponent`.\r\n\r\n## Expected behavior\r\nThe page should render without error :)\r\n\r\n## Minimal reproduction of the problem with instructions\r\nYou can just follow the tutorial yourself from scratch and you'll see this.\r\n\r\n## What is the motivation / use case for changing the behavior?\r\nWant to fix the tutorial for others.\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular version: 6.0.0\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\nBrowser:\r\n- [ ] Chrome (desktop) version XX\r\n- [ ] Chrome (Android) version XX\r\n- [ ] Chrome (iOS) version XX\r\n- [x ] Firefox version 52.3.0 and \r\n- [ ] Safari (desktop) version XX\r\n- [ ] Safari (iOS) version XX\r\n- [ ] IE version XX\r\n- [ ] Edge version XX\r\n \r\nFor Tooling issues:\r\n- Node version: v10.0.0\r\n- Platform: \u003c!-- Mac, Linux, Windows -->\r\n\r\nOthers:\r\n\u003c!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/eptiger","@type":"Person","name":"eptiger"},"datePublished":"2018-05-11T22:07:34Z","url":"https://github.com/angular/angular/issues/23865"}
| 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:3fdb7e45-04b3-0b38-1f01-70e0390629ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5CE:2270F4:D0C9C2:116D9C7:6B00FD4B |
| html-safe-nonce | 8c80b009ee9812930f8e00e92db58d123501b8b7705d4b2e22cc96ef8a16a95a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUNFOjIyNzBGNDpEMEM5QzI6MTE2RDlDNzo2QjAwRkQ0QiIsInZpc2l0b3JfaWQiOiI2MTc3NjI2NTA5MzE5MTQyNzMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e10060a79f1c16921f09c2bbeece1c5d2c0a1e271d61f6d598ca2cf15749e6f |
| hovercard-subject-tag | issue:322448343 |
| 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/23865/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6fb92c82f2eb0c70365a0e19b41cc3d2c92137e4a3b6155265c834bdbde9236/angular/angular/issues/23865 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6fb92c82f2eb0c70365a0e19b41cc3d2c92137e4a3b6155265c834bdbde9236/angular/angular/issues/23865 |
| og:image:alt | I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [ ] Feature request [ x] Documentation issue or request [... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eptiger |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width