diff options
| author | Vojta Jina | 2011-08-30 11:47:24 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-09-26 23:51:53 +0200 |
| commit | 13f92de6246a0af8450fde84b209211a56397fda (patch) | |
| tree | 2e277d50a67f32dddcb1e7674ed8b1476881e014 /docs/content/cookbook | |
| parent | 2bc39bb0b4f81b77597bb52f8572d231cf4f83e2 (diff) | |
| download | angular.js-13f92de6246a0af8450fde84b209211a56397fda.tar.bz2 | |
feat(docs): use html5 history api for all routing in the docs app
- Configure our docs app to use new $location with html5 history api!
- Update simple node web server to serve index.html for all links
(rewritting).
- Update .htaccess file to serve index.html for all links (rewritting).
- At runtime determine the base href path and attach it to the DOM. We
needed the absolute URL to get all browsers to work well.
- Because of the above, we also need to dynamically determine all needed
js/css resources and add them to the DOM. This was needed because FF6
would eagerly fetch resources with wrong URL since the base element is
added to the dom at runtime.
- All content html files were moved to the partials directory, because
with the new html5 urls it was impossible to tell if request for
http://domain/api/angular.filter.html was an html5 url for the html
filter doc page, or an xhr/appcache request for the content html file
for the html filter.
f
Diffstat (limited to 'docs/content/cookbook')
| -rw-r--r-- | docs/content/cookbook/deeplinking.ngdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/cookbook/deeplinking.ngdoc b/docs/content/cookbook/deeplinking.ngdoc index 10c80f21..6747b55f 100644 --- a/docs/content/cookbook/deeplinking.ngdoc +++ b/docs/content/cookbook/deeplinking.ngdoc @@ -28,14 +28,14 @@ controller. 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. +* Welcome: url `welcome` 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} +* <a href="./examples/settings.html" ng:ext-link>./examples/settings.html</a> +* <a href="./examples/welcome.html" ng:ext-link>./examples/welcome.html</a> <doc:example> <doc:source> @@ -79,7 +79,7 @@ The two partials are defined in the following URLs: </script> <div ng:controller="AppCntl"> <h1>Your App Chrome</h1> - [ <a href="#!/welcome">Welcome</a> | <a href="#!/settings">Settings</a> ] + [ <a href="welcome">Welcome</a> | <a href="settings">Settings</a> ] <hr/> <span style="background-color: blue; color: white; padding: 3px;"> Partial: {{$route.current.template}} |
