Skip to content

Commit

Permalink
fix(deploy) use hash urls for github pages (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnomeontherun authored and kyleledbetter committed Aug 4, 2016
1 parent 147c069 commit 9235231
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { bootstrap } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { LocationStrategy, HashLocationStrategy } from '@angular/common';

import { MdIconRegistry } from '@angular2-material/icon';
import { HTTP_PROVIDERS } from '@angular/http';
Expand All @@ -20,4 +21,6 @@ bootstrap(DocsAppComponent, [
HTTP_PROVIDERS,
APP_ROUTER_PROVIDERS,
TD_MEDIA_PROVIDERS,
// Sets the app to use /#/ hash urls for github pages
{ provide: LocationStrategy, useClass: HashLocationStrategy },
]);

0 comments on commit 9235231

Please sign in to comment.