Permalink
Browse files

chore(*): use `!` as hash-prefix

Closes #341
1 parent aabd39b commit a0f087568ee7ad889ad9a717f99e71c255172aed @gkalpak gkalpak committed with petebacondarwin May 21, 2016
Showing with 11 additions and 8 deletions.
  1. +3 −1 app/app.js
  2. +2 −2 app/index-async.html
  3. +2 −2 app/index.html
  4. +2 −1 bower.json
  5. +2 −2 e2e-tests/scenarios.js
View
@@ -7,6 +7,8 @@ angular.module('myApp', [
'myApp.view2',
'myApp.version'
]).
-config(['$routeProvider', function($routeProvider) {
+config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
+ $locationProvider.hashPrefix('!');
+
$routeProvider.otherwise({redirectTo: '/view1'});
}]);
@@ -46,8 +46,8 @@
</head>
<body ng-cloak>
<ul class="menu">
- <li><a href="#/view1">view1</a></li>
- <li><a href="#/view2">view2</a></li>
+ <li><a href="#!/view1">view1</a></li>
+ <li><a href="#!/view2">view2</a></li>
</ul>
<div ng-view></div>
View
@@ -16,8 +16,8 @@
</head>
<body>
<ul class="menu">
- <li><a href="#/view1">view1</a></li>
- <li><a href="#/view2">view2</a></li>
+ <li><a href="#!/view1">view1</a></li>
+ <li><a href="#!/view2">view2</a></li>
</ul>
<!--[if lt IE 7]>
View
@@ -9,6 +9,7 @@
"angular": "~1.5.0",
"angular-route": "~1.5.0",
"angular-loader": "~1.5.0",
- "angular-mocks": "~1.5.0"
+ "angular-mocks": "~1.5.0",
+ "html5-boilerplate": "^5.3.0"
}
}
@@ -14,7 +14,7 @@ describe('my app', function() {
describe('view1', function() {
beforeEach(function() {
- browser.get('index.html#/view1');
+ browser.get('index.html#!/view1');
});
@@ -29,7 +29,7 @@ describe('my app', function() {
describe('view2', function() {
beforeEach(function() {
- browser.get('index.html#/view2');
+ browser.get('index.html#!/view2');
});

0 comments on commit a0f0875

Please sign in to comment.