Knockout.js.pdf

(2989 KB) Pobierz
Knockout.js
BUILDING DYNAMIC
CLIENT-SIDE WEB APPLICATIONS
Jamie Munro
www.it-ebooks.info
Knockout.js
Use Knockout.js to design and build dynamic client-side web applications
that are extremely responsive and easy to maintain. This example-driven
book shows you how to use this lightweight JavaScript framework and its
Model-View-ViewModel (MVVM) pattern. You’ll learn how to build your own
data bindings, extend the framework with reusable functions, and work with
a server to enhance your client-side application with persistence. In the final
chapter, you’ll build a shopping cart to see how everything fits together.
If you’re a web developer with experience in JavaScript, HTML, and CSS,
you’re ready for Knockout.
This book is a great
resource for any developer
looking to make their
web application user
experience pop.
It presents the features
and benefits of
Knockout.js with
extensive examples and
in-depth explanations.
You also benefit
from the author's
recommendations and
advice coming from
lessons learned through
his experience building
web applications.
Senior Software Developer at Fusebill
Learn how to create a ViewModel
Bind HTML data and attributes, and CSS classes and styles
Understand data binding in Knockout’s context hierarchy
Use properties that change dynamically through user
interaction
Work with forms by using several different bindings
Bind multiple ViewModels on a single page
Extend or attach custom functions to observables
Perform server-side interactions with jQuery
Map a JavaScript object or apply JSON data to a new object
—Steven Kennedy
Jamie Munro
has been developing websites and web applications for over
15 years. For the past six years, he’s been mentoring younger developers to
enhance their web development skills. Jamie’s website (http://www.webistrate.
com)
provides examples to help web developers expand their experience.
PROGR AMMING/JAVA SCRIPT
Twitter: @oreillymedia
facebook.com/oreilly
US $19.99
CAN $20.99
ISBN: 978-1-491-91431-1
www.it-ebooks.info
Building Dynamic Client-Side Web Applications
Knockout.js
Jamie Munro
www.it-ebooks.info
Knockout.js
by Jamie Munro
Copyright © 2015 Jamie Munro. 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.
Editor:
Meg Foley
Production Editor:
Kara Ebrahim
Copyeditor:
Gillian McGarvey
Proofreader:
Marta Justak
December 2014:
First Edition
Indexer:
Judy McConville
Interior Designer:
David Futato
Cover Designer:
Ellie Volckhausen
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2014-12-08:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491914311
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Knockout.js,
the cover image of a black
tree kangaroo, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-91431-1
[LSI]
www.it-ebooks.info
This book is dedicated to my family. I hope that you learn—like I have—that when you
work hard and put your mind to something, you can accomplish anything!
www.it-ebooks.info
Zgłoś jeśli naruszono regulamin