5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:10:48 +08:00

[website] Added Angular router guide

This commit is contained in:
Lea\Anthony 2021-12-05 22:23:02 +11:00
parent 0726ae9e83
commit 73c9fba731

View File

@ -17,3 +17,11 @@ const router = createRouter({
],
})
```
## Angular
The recommended approach for routing in Angular is [HashLocationStrategy](https://codecraft.tv/courses/angular/routing/routing-strategies/#_hashlocationstrategy):
```ts
RouterModule.forRoot(routes, {useHash: true})
```