Errata

Mobile App Development with Ionic 2

Errata for Mobile App Development with Ionic 2

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
PDF Page 49
Middle

The author discusses the currentUser variable, but doesn't demonstrate where this variable is declared. Providing this would make it possible to tie it all together. Should currentUser be a property of the UserProfile class? That is, was it omitted? Also, should currentUser be an object with a name property?

William Steinberg  Nov 21, 2016 
PDF Page 49
Code samples

In the templates, you use single braces to have interpolation. Angular 2, like Angular 1 by default uses double braces, such as {{ name }}, not { name }.

William Steinberg  Nov 21, 2016 
PDF Page 50
Top

Explain that <card-header themeColor="blue"></card-header>
is equivalent to
<card-header [themeColor]="currentColor"></card-header>
where this.currentColor = "blue" in class.

William Steinberg  Nov 21, 2016 
PDF Page 50
Middle

For Two-way databinding, provide equivalent, such as:
<input [(ngModel)]="userName">
is equivalent to
<input [value]="userName" (change)="userName = value">

I'm not sure if I got it right, but you should see what I am attempting to convey.

William Steinberg  Nov 21, 2016 
PDF Page 50
The Asterisk

Provide equivalent template.

William Steinberg  Nov 21, 2016 
PDF Page 52
next to last paragraph

Change aap.module.ts to app.module.ts.

William Steinberg  Nov 21, 2016 
PDF Page 59
Second multiply function

You wrote:
var multiply = (x, y) => { return x * y };

Although this is correct, there is a better way.
var multiply = (x, y) => x * y;

This eliminates the curly brackets and return keyword as explained by you.

William Steinberg  Nov 21, 2016 
Printed Page 110
Missing

Please provide clarification to the reader that they need to edit the tabs.ts file to import ParkListPage and set tab1Root = ParkListPage
other wise they will see only the starter tab template landing screen not the view described in Figure 8-4

Jon Kassel  Sep 24, 2017