From a1652057a5e1fce1911b118a5d43629abe772ab6 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Mon, 15 Nov 2010 10:02:22 -0800
Subject: changed to ! notation for indexable apps
---
docs/docs-scenario.js | 2 +-
docs/index.html | 9 +++++----
src/Angular.js | 2 +-
3 files changed, 7 insertions(+), 6 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 @@
<Angular/> Docs
+
@@ -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;
}
diff --git a/src/Angular.js b/src/Angular.js
index c40a7c67..e917b3ee 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -461,7 +461,7 @@ var _undefined = undefined,
*
*
* @scenario
- * iit('should store reverse', function(){
+ * it('should store reverse', function(){
* expect(element('.doc-example input:first').val()).toEqual('angular');
* expect(element('.doc-example input:last').val()).toEqual('RALUGNA');
*
--
cgit v1.2.3