aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMisko Hevery2010-11-15 10:02:22 -0800
committerMisko Hevery2010-11-15 10:04:17 -0800
commita1652057a5e1fce1911b118a5d43629abe772ab6 (patch)
tree9f0cbe2bc92878035d7bee2020c02fc14aac97d6 /docs
parent7e6f9992216157a10a64a86fe526f61f9f57e43f (diff)
downloadangular.js-a1652057a5e1fce1911b118a5d43629abe772ab6.tar.bz2
changed to ! notation for indexable apps
Diffstat (limited to 'docs')
-rw-r--r--docs/docs-scenario.js2
-rw-r--r--docs/index.html9
2 files changed, 6 insertions, 5 deletions
diff --git a/docs/docs-scenario.js b/docs/docs-scenario.js
index 7383bd7f..2ee8387b 100644
--- a/docs/docs-scenario.js
+++ b/docs/docs-scenario.js
@@ -1,7 +1,7 @@
{{#pages}}
describe('{{name}}', function(){
beforeEach(function(){
- browser().navigateTo('index.html#{{name}}');
+ browser().navigateTo('index.html#!{{name}}');
});
// {{raw.file}}:{{raw.line}}
{{{scenario}}}
diff --git a/docs/index.html b/docs/index.html
index 2533caf3..75513db7 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -2,6 +2,7 @@
<html xmlns:ng="http://angularjs.org/" xmlns:doc="http://docs.angularjs.org/" ng:controller="DocsController">
<head>
<title>&lt;Angular/&gt; Docs</title>
+ <meta name="fragment" content="!">
<link rel="stylesheet" href="wiki_widgets.css" type="text/css" media="screen">
<link rel="stylesheet" href="doc_widgets.css" type="text/css" media="screen" />
<link rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" type="text/css" media="screen" />
@@ -22,7 +23,7 @@
window.$root = this.$root;
this.getUrl = function(page){
- return '#' + encodeURIComponent(page.name);
+ return '#!' + encodeURIComponent(page.name);
};
this.getCurrentPartial = function(){
@@ -30,9 +31,9 @@
}
this.getTitle = function(){
- var hashPath = $location.hashPath || 'angular';
- if (hashPath.match(/^angular/)) {
- this.partialTitle = hashPath;
+ var hashPath = $location.hashPath || '!angular';
+ if (hashPath.match(/^!angular/)) {
+ this.partialTitle = hashPath.substring(1);
}
return this.partialTitle;
}