mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:52:29 +08:00
[website] Added Angular router guide
This commit is contained in:
parent
0726ae9e83
commit
73c9fba731
@ -16,4 +16,12 @@ 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})
|
||||
```
|
Loading…
Reference in New Issue
Block a user