Errata

Learning AngularJS

Errata for Learning AngularJS

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
ePub
Page 21
4th paragraph

“AngularJS partials, also called templates, are code sections that contain HTML code that are bound to the <div ng-view></div></div> tag ”

has an extra closing </div> and should be:

“AngularJS partials, also called templates, are code sections that contain HTML code that are bound to the <div ng-view></div> tag ”

Note from the Author or Editor:
Original:
“AngularJS partials, also called templates, are code sections that contain HTML code that are bound to the <div ng-view></div></div> tag ”

Should be changed to:
“AngularJS partials, also called templates, are code sections that contain HTML code that are bound to the <div ng-view></div> tag ”

agilitynerd  Aug 15, 2015 
Printed, PDF, ePub
Page 37
lower half

Source code included on this page for "chapter4/controllers.js" is completely different from the source code posted by the author at:

https://github.com/KenWilliamson/LearningAngularJS_chapter4/blob/master/public_html/js/controllers.js

The book's preface on page xv provides https://github.com/KenWilliamson as the location from which code examples are available.

Note from the Author or Editor:
the code on page 34 (chapter4/controlers.js needs to be changed to the following:

'use strict';

/* Controllers */

var helloWorldControllers = angular.module('helloWorldControllers', []);



helloWorldControllers.controller('MainCtrl', ['$scope',
function MainCtrl($scope) {
$scope.message = "Hello World";
}]);

helloWorldControllers.controller('ShowCtrl', ['$scope',
function ShowCtrl($scope) {
$scope.message = "Show The World";
}]);

helloWorldControllers.controller('CustomerCtrl', ['$scope',
function CustomerCtrl($scope) {
$scope.customerName = "Bob's Burgers";
$scope.customerNumber = 44522;
$scope.changeCustomer = function(){
$scope.customerName = $scope.cName;
$scope.customerNumber = $scope.cNumber;
};
}]);


helloWorldControllers.controller('AddCustomerCtrl', ['$scope', '$location',
function AddCustomerCtrl($scope, $location) {
$scope.submit = function(){
$location.path('/addedCustomer/' + $scope.cName + "/" + $scope.cCity);
};
}]);

helloWorldControllers.controller('AddedCustomerCtrl', ['$scope', '$routeParams',
function AddedCustomerCtrl($scope, $routeParams) {
$scope.customerName = $routeParams.customer;
$scope.customerCity = $routeParams.city;
}]);

Bill Voltmer  Jun 28, 2015 
ePub
Page 105
4th paragraph

“We will now add a controller, route, and view to display the individual blog post when a user clicks on the “View More” link.”

The link is named "Read More".

Note from the Author or Editor:
Original:
“We will now add a controller, route, and view to display the individual blog post when a user clicks on the “View More” link.”

Correction:
“We will now add a controller, route, and view to display the individual blog post when a user clicks on the “Read More” link.”

Steve Schwarz  Aug 16, 2015