Upgrade routing to Angular2.

This commit is contained in:
Alexis Lahouze
2017-08-01 23:09:21 +02:00
parent 2ae8a9cfad
commit 5726d8bf2e
13 changed files with 81 additions and 59 deletions

View File

@ -22,7 +22,7 @@ import { AccountEditModalComponent } from './accountEditModal.component';
},
template: `
<td>
<a href="#!/account/{{ account.id }}/operations">{{ account.name }}</a>
<a [routerLink]="['/account', account.id, 'operations']">{{ account.name }}</a>
</td>
<td>
@ -56,7 +56,7 @@ import { AccountEditModalComponent } from './accountEditModal.component';
<!-- Open account scheduler. -->
<a class="btn btn-secondary"
[hidden]="!account.id"
href="#!/account/{{ account.id }}/scheduler">
[routerLink]="['/account', account.id, 'scheduler']">
<span class="fa fa-clock-o"></span>
</a>
</div>