万本电子书0元读

万本电子书0元读

顶部广告

KnockoutJS by Example电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Adnan Jaswal

出  版  社:Packt Publishing

出版时间:2015-09-30

字       数:89.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Develop rich, interactive, and real-world web applications using knockout.js About This Book Master the full range of features provided by knockout.js such as declarative binding, automatic refresh, dependency tracking, and templating using this project based guide Tackle real-world problems such as page navigation, forms, composite UI components, maps integration, server interaction for CRUD operations, and application security Discover the power of knockout.js as you build applications with complexity ranging from beginner to advanced Extend and customize knockout.js to harness its full potential Integrate with third party libraries and APIs to build fully featured applications Who This Book Is For This book is intended for designers and developers who want to learn how to use Knockout to develop rich, interactive, and modular web applications. The book assumes no prior knowledge of the Knockout library but basic familiarity with HTML, CSS, and JavaScript would be helpful. What You Will Learn Explore the basic concept behind the Model-View-View Model (MVVM) design pattern and how it is implemented by Knockout Develop a modular application skeleton based on the module pattern that can be used as a template for your projects Create single page, rich, interactive, modular, real-world applications using Knockout Use knockout.js with other libraries and APIs such as JQuery, Bootstrap, and Google Maps API to give your users a richer experience Create a real-world dynamic web form to capture user information and learn how Knockout makes it easier to capture, validate, and submit form data Develop and use dynamic UI components such as grids, tabs, dialogs, and wizards Extend knockout.js to add custom extenders, binding handlers, and observables Communicate with the backend server using JSON over restful web services Secure your single page application using token-based authentication In Detail Knockout is an open source JavaScript library that lets you develop rich, interactive, and modular web applications. It reduces the complexities of JavaScript and HTML development by following the Model-View-View Model (MVVM) design pattern. It allows you to efficiently develop highly scalable, testable, and maintainable web applications that are rich and interactive. Knockout is a pure JavaScript library and supports all major browsers. This book starts with introducing the key features and concepts of knockout.js. It helps you create an application skeleton and a hello world application. You will develop a To-Do list application that aims to show the basic features of knockout.js in action such as data binding and observables, following which you will develop a dynamic online customer registration form that captures and validates customer information. This book will further walk your way to develop a customer banking portal, which demonstrates the use of knockout.js with components such as navigation bars, tabs, carousel, master details view, panels, forms, wizards, and modal dialogs. You will also discover to use token-based authentication and authorization to secure the customer banking portal and move on to creating an editable products grid with CRUD operations. Finally, you will explore using the Google maps api with knockout.js. By working along with the examples, this book will not only leave you with the basic understanding of knockout.js fundamentals but you will also have a web application ready instantly. Style and approach The book takes an iterative approach in explaining and building the sample applications. The applications are built in small portions with each portion delivering a set of features. It is an easy-to-follow yet comprehensive hands-on guide, which is full of real-world applications.
目录展开

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

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部