Errata

Build a Strong AngularJS Foundation

Errata for Build a Strong AngularJS Foundation

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version Coding exercise M4.1 - watch.html

Good course so far. I'm making good progress in areas that have been heavy going for me up to now.

The exercises are very informative and of course an essential part of the course, so I think you should consider resolving this issue I encountered today.

For <!-- [M4.1] Use `ng-include` on the related videos list to render the template for each video. -->

there is a hint

<!-- HINT: ng-include="/templates/video-listing.html" can be used here -->

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

<div ng-include="/templates/video-listing.html" ng-repeat="video in relatedVideos | limit:14"
class="col-md-6 nt-videos-list-entry thumb-layout" >

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:
<div ng-include="tpl('video-listing')" ng-repeat="video in relatedVideos | limit:14"
class="col-md-6 nt-videos-list-entry thumb-layout" >

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.

Best regards

Phil
Edinburgh
Scotland








phil westwell  May 11, 2014 

The video exercise M5 can't seem to run on Chrome.

Indra Arifin  Aug 07, 2014 
M3.2
Belgium

Hi,

In M3.2, you ask to add the code into SearchCtrl to expose search() as scope member on $scope. Then inside of the search controller code make sure that $rootScope.q is changed each time the function is called.

I did it and the tests passed.

But this method on the SearchCtrl is never fired as this controller is not linked to the search icon/input (at least at level 3). Moreover in the code, the input field is already linked to $rootScope.q via ng-model and the list of video is filtered by q so each time you type a character in the input field the list is filtered and so clicking on the search button does not seem to make sense.

Can you explain what is the goal to write this search method here? I get that it is an exercice for implementing a method on $scope of the SearchCtrl but I don't see its use in the demo app.

Thx

Anonymous  Jan 02, 2015 
Other Digital Version M1
VIDEO for testing on M1

Running the examples, I am using Windows 10. In the first module it appears the authors are using some kind of batch shell script and the module: '.\test.sh M1'... this doesn't appear to work in Windows. After some trial and error, I figured it out. Be in this directory: "\video-exercises\hands-on-exercises\M1\test" then, run this command: 'karma start karma-unit.conf.js' ... this actually does this test. It would be most helpful if it was included in the readme file for future students; it would prevent frustration/research when only starting the first module. Thank you.

Rob Milliken  Dec 08, 2016 
ePub Page 1
United States

when you run the ./scripts/install.sh it search your whole compuuter and never errors out. this is on a mac.

jerome amos jr  May 27, 2014