mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-10 10:01:00 +00:00
changed to ! notation for indexable apps
This commit is contained in:
parent
7e6f999221
commit
a1652057a5
3 changed files with 7 additions and 6 deletions
|
|
@ -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}}}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<html xmlns:ng="http://angularjs.org/" xmlns:doc="http://docs.angularjs.org/" ng:controller="DocsController">
|
||||
<head>
|
||||
<title><Angular/> 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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue