计算机书籍控

用AngularJS开发下一代Web应用(英文)

Develop smaller, lighter web apps that are simple to create and easy to test, extend, and maintain as they grow. This hands-on guide introduces you to AngularJS, the open source JavaScript framework that uses Model - view - controller (MVC) architecture, data binding, client-side templates, and dependency injection to create a much-needed structure for building web apps. Guided by two engineers who worked on AngularJS at Google, you'll walk through the framework's key features, and then build a working AngularJS app - from layout to testing, compiling, and debugging. You'll learn how AngularJS helps reduce the complexity of your web app. Dive deep into Angular's building blocks and learn how they work together Gain maximum flexibility by separating logic, data, and presentation responsibilities with MVC Assemble your full app in the browser, using client-side templates Use AngularJS directives to extend HTML with declarative syntax Communicate with the server and implement simple caching with the $http service Use dependency injection to improve refactoring, testability, and multiple environment design Get code samples for common problems you face in most web apps

目录


Chapter 1 Introduction to AngularJS
Concepts
An Example: Shopping Cart
Up Next
Chapter 2 Anatomy of an AngularJS Application
Invoking Angular
Model View Controller
Templates and Data Binding
Organizing Dependencies with Modules
Formatting Data with Filters
Changing Views with Routes and $location
Talking to Servers
Changing the DOM with Directives
Validating User Input
Moving On
Chapter 3 Developing in AngularJS
Project Organization
Tools
Running Your Application
Testing with AngularJS
Unit Tests
End-to-End/Integration Tests
Compilation
Other Awesome Tools
Yeoman: Optimizing Your Workflow
Integrating AngularJS with RequireJS
Chapter 4 Analyzing an AngularJS App
The Application
Relationship Between Model, Controller, and Template
The Model
Controllers, Directives, and Services, Oh My!
The Templates
The Tests
Chapter 5 Communicating with Servers
Communicating Over $http
Unit Testing
Working with RESTful Resources
The $q and the Promise
Response Interception
Security Considerations
Chapter 6 Directives
Directives and HTML Validation
API Overview
Moving On
Chapter 7 Other Concerns
$location
AngularJS Module Methods
Communicating Between Scopes with $on, $emit, and $broadcast
Cookies
Internationalization and Localization
Sanitizing HTML & the Sanitize Module
Chapter 8 Cheatsheet and Recipes
Wrapping a jQuery Datepicker
The Teams List App: Filtering and Controller Communication
File Upload in AngularJS
Using Socket.IO
A Simple Pagination Service
Working with Servers and Login
Conclusion
Index
Colophon

书籍下载

免费下载

正版书籍

用AngularJS开发下一代Web应用(英文)