Skip to content

Commit adc2a61

Browse files
committed
chore: switch to HTML5 Mode
1 parent 26811ef commit adc2a61

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3 July 2016
4+
5+
- Use html5mode instead of hash navigation.
6+
37
## 24 June 2016
48

59
- Be able to import Component's templates and styles without using require.

src/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { enableProdMode } from '@angular/core';
22
import { bootstrap } from '@angular/platform-browser-dynamic';
3-
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
43
import { HTTP_PROVIDERS } from '@angular/http';
54

65
import { AppComponent } from './app/app.component';
@@ -14,7 +13,6 @@ if (process.env.ENV === 'build') {
1413
bootstrap(AppComponent, [
1514
// These are dependencies of our App
1615
HTTP_PROVIDERS,
17-
APP_ROUTER_PROVIDERS,
18-
{ provide: LocationStrategy, useClass: HashLocationStrategy } // use #/ routes, remove this for HTML5 mode
16+
APP_ROUTER_PROVIDERS
1917
])
2018
.catch(err => console.error(err));

0 commit comments

Comments
 (0)