I've been working my way through the Angular2 tutorial called Tour of Heroes and everything has been going smoothly up until this point. At the link above, I've encountered a problem.
The code on the left is what the tutorial recommends, but for some reason, the application is not rendering correctly. However, when I make a slight modification as shown in the code on the right, the application does render correctly. My goal is to follow the tutorial's instructions exactly.
https://i.sstatic.net/mO89p.png
It seems like the issue may be related to the use of the const
variable, but I'm not sure.
Does anyone have any suggestions on how to troubleshoot and resolve this issue?