没有合适的资源?快使用搜索试试~ 我知道了~
[AngularJS 2013 4 ] Brad Green 文字版 pdf
需积分: 10 15 下载量 113 浏览量
2014-07-13
17:17:06
上传
评论
收藏 7.88MB PDF 举报
温馨提示
试读
196页
[AngularJS 2013 4 ] Brad Green 文字版 pdf 英文版(全)
资源推荐
资源详情
资源评论
Brad Green and Shyam Seshadri
AngularJS
AngularJS
by Brad Green and Shyam Seshadri
Copyright © 2013 Brad Green and Shyam Seshadri. 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://my.safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: Simon St. Laurent and Meghan Blanchette
Production Editor: Melanie Yarbrough
Copyeditor: Rachel Leach
Proofreader: Jilly Gagnon
Indexer: Judith McConville
Cover Designer: Randy Comer
Interior Designer: David Futato
Illustrator: Rebecca Demarest
April 2013:
First Edition
Revision History for the First Edition:
2013-04-05: First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449344856 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly
Media, Inc. AngularJS, 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 trade‐
mark 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-449-34485-6
LSI
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1.
Introduction to AngularJS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Concepts 1
Client-Side Templates 2
Model View Controller (MVC) 3
Data Binding 3
Dependency Injection 5
Directives 5
An Example: Shopping Cart 6
Up Next 9
2.
Anatomy of an AngularJS Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Invoking Angular 11
Loading the Script 11
Declaring Angular’s Boundaries with ng-app 12
Model View Controller 12
Templates and Data Binding 14
Displaying Text 15
Form Inputs 16
A Few Words on Unobtrusive JavaScript 19
Lists, Tables, and Other Repeated Elements 21
Hiding and Showing 23
CSS Classes and Styles 24
Considerations for src and href Attributes 26
Expressions 26
Separating UI Responsibilities with Controllers 27
Publishing Model Data with Scopes 28
Observing Model Changes with $watch 29
iii
剩余195页未读,继续阅读
资源评论
打不死的小黑
- 粉丝: 132
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功