Thursday, August 4, 2016

The Angular 2 "Tour of Heroes" tutorial has a missing part

I think there is something missing in the "Routing" part of the "Tour of Heroes" tutorial -- after the "Make the router available" section and before the "Router Links" section.

The <router-outlet> needs "directives: [ROUTER_DIRECTIVES]". But the code for that is given way below of the tutorial.

I got confused. But I was able to see the error and found a fix for it.

Maybe you got confused also.

Here is the link to what I think should be placed in that missing part. I'm not a native English speaker so my English might not be 100% correct but I believe you can be able to understand it.

Happy coding!


No comments:

Post a Comment