Enrutamiento Angular2: ¿agregar el hashtag usando LocationStrategy no funciona?

Estoy siguiendo la aplicación de inicio rápido simple de los documentos de Angular2 y estoy usando un backend de resorte para ejecutarla. Mi problema es que el enrutador angular abandonó el hashtag de la URL, así que lo que debería haber sidoexample.com/#/dashboard es ahoraexample.com/dashboard.

Estoy usando elLocationStrategy método especificado en un montón de publicaciones en StackOverflow. A continuación se muestra mi ejemplo simple:

File: main.ts

///<reference path="../node_modules/angular2/typings/browser.d.ts"/>

import {bootstrap} from 'angular2/platform/browser'
import {provide} from 'angular2/core';
import {LocationStrategy, HashLocationStrategy} from 'angular2/router';

import {TestComponent} from './simple/test.component'

bootstrap(
    TestComponent, 
    [
        provide(LocationStrategy, { useClass: HashLocationStrategy })
    ]
);

File: test.component.ts

import {Component} from 'angular2/core';
import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router';

@Component({
    selector: 'test1',
    template: "<h1>This is test1 component</h1>"
})
export class Test1 { };

@Component({
    selector: 'test2',
    template: "<h1>This is test2 component</h1>"
})
export class Test2 { };

@Component({
    selector: 'my-app',

    template: `
        <h1>This is my test app</h1>
        <nav>
            <a [routerLink]="['Test1']">Test1</a>
            <a [routerLink]="['Test2']">Test2</a>
        </nav>
        <router-outlet></router-outlet>
    `,

    directives: [ROUTER_DIRECTIVES],

    providers: [ROUTER_PROVIDERS]
})
@RouteConfig([
    {
        path: '/test1',
        name: 'Test1',
        component: Test1
    },
    {
        path: '/test2',
        name: 'Test2',
        component: Test2
    }
])
export class TestComponent { }

File: index.html

<html>
    <head>

        <base href="/">

        <title>This is an Angular 2 test</title>

        <!-- Angular dependencies -->
        <script src="/node_modules/es6-shim/es6-shim.js"></script>
        <script src="/node_modules/systemjs/dist/system-polyfills.js"></script>
        <script src="/node_modules/angular2/bundles/angular2-polyfills.js"></script>
        <script src="/node_modules/systemjs/dist/system.src.js"></script>
        <script src="/node_modules/rxjs/bundles/Rx.js"></script>
        <script src="/node_modules/angular2/bundles/angular2.dev.js"></script>
        <script src="/node_modules/angular2/bundles/router.dev.js"></script>

        <!-- App -->
        <script>

            System.config({
                packages: {
                    app: {
                        format: 'register',
                        defaultExtension: 'js'
                    }/*,
                    'node_modules': {
                        format: 'cjs',
                        defaultExtension: 'js'
                    }*/
                }
            });

            System.import('app/main').then(null, console.error.bind(console));

        </script>

    </head>
    <body>
        <my-app></my-app>
    </body>
</html>

Estoy usandoAngular2 2.0.0-beta.9 y este es el comportamiento que veo. Tenga en cuenta que ninguna de las 2 rutas en @RouteConfig está marcada conuseAsDefault: true.

Cuando trato de abrirhttp://localhost:8080/#/test1 la página se abre bien, pero cuando hago clic en uno de los 2 anclajes en la plantilla TestComponent, el hashtag se cae.

Entonces si configuropath1 seruseAsDefault: true, el hashtag se cae inmediatamente incluso cuando intento visitarhttp://localhost:8080/#/test1.

¿Puede alguien decirme si estoy haciendo algo mal o si eso es un error? Solo quiero recuperar el hashtag en la URL.

Respuestas a la pregunta(2)

Su respuesta a la pregunta