Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
KNOCKOUTJS BLUEPRINTS

You're reading from   KNOCKOUTJS BLUEPRINTS Learn how to design and create amazing web applications using KnockoutJS

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781783980840
Length 218 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Carlo Russo Carlo Russo
Author Profile Icon Carlo Russo
Carlo Russo
Arrow right icon
View More author details
Toc

Table of Contents (7) Chapters Close

Analysing and developing the Relocate module

With this module, we want to transpose the module for the relocation from the paper form into a digital web form.

We have already seen the steps the user has to follow to perform relocation; we will define three steps to help him with the full workflow:

  1. Fill the form.
  2. Sign and send.
  3. Wait 45 days and then manage your address.

Here there is a wireframe of these steps:

Analysing and developing the Relocate module

Realizing such a kind of interface is really simple with DurandalJS, with the help of the child router.

Tip

The router binding handler gives us a way to modularize the contents of the Views, separating them from the layout of the container.

We can go further with this modularization, with the use of the child router; inside a module, we define the children routes we want to show and the router plugin will activate all the modules for the selected path.

You can find a good example of how the child router works inside the examples of DurandalJS, looking at the ko route.

Just remember that you...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image