You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I put this in the book's errata before I thought of putting it here, so maybe you could take thie equivalent comment down from "errata")
For
there is a hint
In fact I wasted a couple of hours troubleshooting this, only to find that ng-include="/templates/video-listing.html" in fact can NOT be used here. Here is what happened:
If I add the suggested statement in the obvious way, like this
then I get
Error: [$parse:syntax] Syntax Error: Token 'templates' is an unexpected token at column 2 of the expression [/templates/video-listing.html] starting at [templates/video-listing.html].
After some trial and error, the working statement I needed was this this:
I don't understand why the first (suggested) attempt didn't work: I can only assume it's because there's a problem parsing a string in that location. Matias will no doubt be in a good position to confirm/refute this. I can see there's a problem with adding my solution as a hint as it requires a bit more background knowledge of the example code.
I feel the way I interpreted the hint was the obvious way that any reader would (but correct me if I'm wrong on this!), and the resulting intractable error message would start to make any reader lose confidence. Confidence is all-important when learning a subject like Angular which, more than most topics, requires a newcomer to keep a lot of plates spinning at the same time.
The text was updated successfully, but these errors were encountered:
(I put this in the book's errata before I thought of putting it here, so maybe you could take thie equivalent comment down from "errata")
For
there is a hint
In fact I wasted a couple of hours troubleshooting this, only to find that ng-include="/templates/video-listing.html" in fact can NOT be used here. Here is what happened:
If I add the suggested statement in the obvious way, like this
then I get
Error: [$parse:syntax] Syntax Error: Token 'templates' is an unexpected token at column 2 of the expression [/templates/video-listing.html] starting at [templates/video-listing.html].
After some trial and error, the working statement I needed was this this:
I don't understand why the first (suggested) attempt didn't work: I can only assume it's because there's a problem parsing a string in that location. Matias will no doubt be in a good position to confirm/refute this. I can see there's a problem with adding my solution as a hint as it requires a bit more background knowledge of the example code.
I feel the way I interpreted the hint was the obvious way that any reader would (but correct me if I'm wrong on this!), and the resulting intractable error message would start to make any reader lose confidence. Confidence is all-important when learning a subject like Angular which, more than most topics, requires a newcomer to keep a lot of plates spinning at the same time.
The text was updated successfully, but these errors were encountered: