Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Does the route "teams" works the first time? Commented May 29, 2017 at 8:52
  • And how does your TeamService looks like? Commented May 29, 2017 at 9:00
  • Yeah @MarkusKollers, when I go to "/teams" for the first time, it prints the correct list. Commented May 29, 2017 at 9:24
  • I've build a clean angular-cli project and added your components and your service, and it works. Do you get any errors in your developer-console (F12)? Commented May 29, 2017 at 9:32
  • @MarkusKollers it says the property binding fields are null (ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of null TypeError: Cannot read property 'name' of null at Object.eval [as updateRenderer] (TeamComponent.html:5) at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:12822)). It's like the route /team/19 (for example) isn't working, and it's trying to render TeamComponent on /teams. In fact, at the Network section in Chrome debugger, /team/19 is never called. Very, very strange. Commented May 29, 2017 at 10:02