售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
KnockoutJS by Example
Table of Contents
KnockoutJS by Example
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
License
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
Understanding the MVVM design pattern
The model
The view model
The view
The key features of Knockout
Declarative bindings
Automatic UI refresh
Dependency tracking
Templating
Understanding the module pattern and its use with Knockout
The concept
Public and private members
Initializing the module
Using the module with view model
Building the address book application
A word on the development environment
Downloading the libraries
Creating the skeleton
Adding the application features
Capturing and storing contacts
Displaying contacts
Adding style to your application with Bootstrap
Resources
Summary
2. Creating a To-do List Application
Creating the skeleton
Adding and viewing tasks
Deleting a task
Completing a task
Setting priority for a task
Sorting tasks by priority and name
Viewing the number of total and completed tasks
Summary
3. Creating an Online Customer Registration Form
Getting started
Capturing personal information
Capturing contact details
Capturing residential and postal addresses
Capturing credit card details
Capturing interests
Clearing the registration form
Summary
4. Adding Validation to the Customer Registration Form
Validating the model using Knockout extenders
Validating model using the Knockout validation plugin
Getting started
The basics
Validating personal information
Validating contact details
Validating address details
Validating credit cards
Summary
5. Creating a Customer Banking Portal
Creating the skeleton
Navigating between application features
Viewing contact details and information about the bank
Viewing accounts
Viewing transactions for an account
Viewing personal information
Summary
6. Enhancing the Customer Banking Portal
Updating personal information
Cancel updating the personal information
Validating personal information
Transferring funds between accounts
Creating the Transfers tab
Creating the wizard component
Adding functionality to the wizard
Summary
7. Securing the Customer Banking Portal
Authentication mechanisms
Basics of the token-based authentication
Token versus session in cookies
JSON Web Token
Logging in to the application
Creating the authentication module
Creating the login screen
Refactoring the BankPortal module
Testing the application using different user accounts
Validating the login form
Handling the authentication error
Displaying the logged in user
Logging out of the application
Summary
8. Building an Editable Products Grid with CRUD Operations
A word on REST
Installing and running the sever
Creating the skeleton
Displaying the list of products
Deleting a product
Adding a product
Updating a product
Summary
9. Using Google Maps APIs with Knockout
Creating the skeleton
Capturing address using autocomplete
Displaying address details
Rendering the map
Placing markers on the map
Displaying route between markers
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜