mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
@petebacondarwin deserves credit for most of this commit.
This allows you to specify a regex and serializer function instead
of the path DSL in your route declaration.
```
@RouteConfig([
{ regex: '[a-z]+.[0-9]+',
serializer: (params) => `{params.a}.params.b}`,
component: MyComponent }
])
class Component {}
```
Closes #7325
Closes #7126
|
||
|---|---|---|
| .. | ||
| angular1_router | ||
| angular2 | ||
| angular2_material | ||
| benchmarks | ||
| benchmarks_external | ||
| benchpress | ||
| payload_tests/hello_world/ts | ||
| playground | ||