From 7f1e2e48467f80cc083d24b44f088620e4e7bcb6 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 6 Jun 2011 08:50:35 -0700 Subject: new batch of docs --- docs/content/cookbook/deeplinking.ngdoc | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'docs/content/cookbook/deeplinking.ngdoc') diff --git a/docs/content/cookbook/deeplinking.ngdoc b/docs/content/cookbook/deeplinking.ngdoc index 7d69ee84..cc748b3f 100644 --- a/docs/content/cookbook/deeplinking.ngdoc +++ b/docs/content/cookbook/deeplinking.ngdoc @@ -3,14 +3,18 @@ @name Cookbook: Deep Linking @description + Deep linking allows you to encode the state of the application in the URL so that it can be bookmarked and the application can be restored from the URL to the same state. + While does not force you to deal with bookmarks in any particular way, it has services which make the common case described here very easy to implement. + # Assumptions + Your application consists of a single HTML page which bootstraps the application. We will refer to this page as the chrome. Your application is divided into several screens (or views) which the user can visit. For example, @@ -21,23 +25,30 @@ screen will be constructed from an HTML snippet, which we will refer to as the p have multiple partials, but a single partial is the most common construct. This example makes the partial boundary visible using a blue line. + You can make a routing table which shows which URL maps to which partial view template and which controller. + # Example + In this example we have a simple app which consist of two screens: + * Welcome: url `#` Show the user contact information. * Settings: url `#/settings` Show an edit screen for user contact information. + + The two partials are defined in the following URLs: * {@link ./examples/settings.html} * {@link ./examples/welcome.html} +