Skip to content

Instantly share code, notes, and snippets.

@MikeRyanDev
Created January 22, 2016 03:12
Show Gist options
  • Save MikeRyanDev/c452a8b4b66a66cd1939 to your computer and use it in GitHub Desktop.
Save MikeRyanDev/c452a8b4b66a66cd1939 to your computer and use it in GitHub Desktop.
import {
PLATFORM_DIRECTIVES,
provide,
bootstrap
} from 'angular2/core';
import {
ROUTER_PROVIDERS,
ROUTER_DIRECTIVES,
LocationStrategy,
HashLocationStrategy
} from 'angular2/router';
import {App} from './app';
bootstrap(App, [
ROUTER_PROVIDERS,
provide(PLATFORM_DIRECTIVES, {
useValue: ROUTER_DIRECTIVES,
multi: true
}),
provide(LocationStrategy, {
useClass: HashLocationStrategy
})
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment