ABOUT THIS BOOK
xviii
Part 1, “Get acquainted with AngularJS,” introduces the high-level pieces of Angu-
larJS and talks about what each piece does and how they fit together (chapter 1). To
reiterate these concepts, we build out our first AngularJS application, a simplified ver-
sion of the main sample application, in chapter 2.
Part 2, “Make something with AngularJS,” gets into more advanced and specific top-
ics, such as server-side communication, directives, animations, routing, and forms and
validations. In each chapter, we look at the underpinnings of the topic and then see
how it appears in the context of a real application. We end each chapter with a discus-
sion on testing and best practices. Chapter 3 discusses how views and controllers work
together in AngularJS to control what the user sees, as well as capture user interactions
and convey those events for processing. Chapter 4 expands on controllers by introduc-
ing services and then showing how to communicate with a remote server using the
$http
service. Chapter 5 introduces directives and shows how directives turn layouts
into components while providing complex functionality. We’ll kick our layouts up a
notch in chapter 6 by adding in animations using
ngAnimate
. Chapter 7 digs into using
routes in AngularJS to deep-link to specific states in the application, preloading specific
data using
resolve
, and passing variables from route to route using
$routeParams
.
Chapter 8 finishes off with a discussion on how to use form validation to enhance the
user experience while providing safeguards around the data being entered.
There are also four appendixes about setting up Karma, setting up a Node.js
server, setting up a Firebase server, and running the sample app.
Source code conventions and downloads
The source code in the book, whether in code listings or snippets, is in a
fixed-width
font
like
this
, which sets it off from the surrounding text. In some listings, the code
is annotated to point out key concepts, and numbered bullets are sometimes used in
the text to provide additional information about the code. The code is formatted so
that it fits within the available page space in the book by adding line breaks and using
indentation carefully.
All of the source code for the examples in the book can be found at this Github
link: https://github.com/angularjs-in-action. The sample application for the book is
at this repository: https://github.com/angularjs-in-action/angello. The simplified
version of the application is at this repository: https://github.com/angularjs-in-
action/angello-lite.
You can also find detailed instructions on how to get the applications up and run-
ning in the readme file. Visit the repo often for updates and bug fixes to the project as
well as bonus repositories.
The source code is also available for download from the publisher’s website at
www.manning.com/AngularJSinAction.
NOTE At the time of this writing, Angular 2 is in an alpha release and not
yet ready for writing non-trivial applications. With that said, we’ll be pub-
lishing an Angular 2 version of Angello as soon as it makes sense.
www.it-ebooks.info