Skip to content

Commit b880b6a

Browse files
committed
https://github.com/angular/angular.js/pull/14202
1 parent 6bb69b5 commit b880b6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/scripts/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ angular
1616
'ngRoute',
1717
'ngSanitize'
1818
])
19-
.config(function ($routeProvider) {
19+
.config(function ($locationProvider, $routeProvider) {
20+
21+
$locationProvider.hashPrefix('');
2022

2123
$routeProvider
2224
.when('/', {

app/views/partials/media.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ <h3>{{item.name}}</h3>
1515
<p>
1616
{{item.description}}
1717
</p>
18-
<a ng-href="/#/portfolio/{{item.id}}" class="btn btn-default">More details</a>
18+
<a ng-href="/portfolio/{{item.id}}" class="btn btn-default">More details</a>
1919
</div>
2020
</div>

0 commit comments

Comments
 (0)