AngularJS- Up and Running.pdf
(
4252 KB
)
Pobierz
AngularJS
Up & Running
ENHANCED PRODUCTIVITY
WITH STRUCTURED WEB APPS
Shyam Seshadri & Brad Green
www.it-ebooks.info
AngularJS: Up and Running
If want to get started with AngularJS, either as a side project, an additional
tool, or for your main work, this practical guide teaches you how to use this
meta-framework step-by-step, from the basics to advanced concepts. By
the end of the book, you’ll understand how to develop a large, maintainable,
and performant application with AngularJS.
Guided by two engineers who worked on AngularJS at Google, you’ll
learn the components needed to build data-driven applications, using
declarative programming and the Model–view–controller pattern. You’ll
also learn how to conduct unit tests on each part of your application.
■
■
I'm hardly more than
“
an amateur JavaScript
developer and I had zero
problems understanding
this book. I appreciate
how it started at the
very beginning—the
why of AngularJS—and
slowly worked its way
up from there. The
complimentary code
repository was a huge
help as well!
Learn how to use controllers for moving data to and from views
Understand when to use AngularJS services instead of
controllers
Communicate with the server to store, fetch, and update data
asynchronously
Know when to use AngularJS filters for converting data and
values to different formats
Implement single-page applications, using ngRoute to select
views and navigation
Dive into basic and advanced directives for creating reusable
components
Write an end-to-end test on a live version of your entire
application
Use best practices, guidelines, and tools throughout the
development cycle
■
■
”
frontend developer
—Marc Amos
■
■
■
■
Shyam Seshadri,
owner/CEO of Fundoo Solutions in Mumbai, splits his time
between working on innovative and exciting new products for the Indian mar-
kets, and consulting about and running workshops on AngularJS.
Brad Green,
an engineering manager at Google, works on the AngularJS project
and directs Accessibility as well as Support Engineering. Brad also worked on the
early mobile web at AvantGo, and founded and sold startups.
PROGR AMMING/JAVA SCRIPT
Twitter: @oreillymedia
facebook.com/oreilly
US $39.99
CAN $41.99
ISBN: 978-1-491-90194-6
www.it-ebooks.info
AngularJS: Up And Running
Shyam Seshadri and Brad Green
www.it-ebooks.info
AngularJS: Up And Running
by Shyam Seshadri and Brad Green
Copyright © 2014 Shyam Seshadri and Brad Green. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editors:
Simon St. Laurent and Brian MacDonald
Production Editor:
Kara Ebrahim
Copyeditor:
Gillian McGarvey
Proofreader:
Kim Cofer
September 2014:
First Edition
Indexer:
Judy McConville
Cover Designer:
Ellie Volckhausen
Interior Designer:
David Futato
Illustrator:
Rebecca Demarest
Revision History for the First Edition:
2014-09-05:
First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491901946
for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly
Media, Inc.
AngularJS: Up and Running,
the image of a thornback cowfish, and related trade dress are
trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark
claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information contained
herein.
ISBN: 978-1-491-90194-6
[LSI]
www.it-ebooks.info
Table of Contents
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1. Introducing AngularJS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Introducing AngularJS
What Is MVC (Model-View-Controller)?
AngularJS Benefits
The AngularJS Philosophy
Starting Out with AngularJS
What Backend Do I Need?
Does My Entire Application Need to Be an AngularJS App?
A Basic AngularJS Application
AngularJS Hello World
Conclusion
AngularJS Modules
Creating Our First Controller
Working with and Displaying Arrays
More Directives
Working with ng-repeat
ng-repeat Over an Object
Helper Variables in ng-repeat
Track by ID
ng-repeat Across Multiple HTML Elements
Conclusion
Unit Testing: What and Why?
Introduction to Karma
2
2
3
4
10
10
11
11
12
13
15
17
22
26
27
28
29
30
32
34
35
37
2. Basic AngularJS Directives and Controllers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3. Unit Testing in AngularJS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
iii
www.it-ebooks.info
Plik z chomika:
Phoob
Inne pliki z tego folderu:
AngularJS Essentials.pdf
(1258 KB)
AngularJS Services.pdf
(1080 KB)
AngularJS Web Application Development Cookbook.pdf
(2850 KB)
AngularJS- Up and Running.pdf
(4252 KB)
AngularJS.pdf
(8578 KB)
Inne foldery tego chomika:
Android
CAD
django
English Learning
linux
Zgłoś jeśli
naruszono regulamin