refactor(router): RouteData as a type#4428
Conversation
76a995d to
7e7dcc5
Compare
|
Looks good, except two things:
Fix those, rebase, squash, and this is good to merge 👍. Thanks for your help, @cexbrayat! |
f67608c to
d9c243a
Compare
BREAKING CHANGE
The ROUTE_DATA token has been removed and replaced with a type RouteData,
allowing a type injection like we do with RouteParams.
Before:
constructor(routeParams: RouteParams, @Inject(ROUTE_DATA) routeData) {
let id = routeParams.get('id');
let name = ROUTE_DATA.name;
}
After:
constructor(routeParams: RouteParams, routeData: RouteData) {
let id = routeParams.get('id');
let name = routeData.get('name');
}
Fixes angular#4392
d9c243a to
bc7bac9
Compare
|
@btford Fixed, rebased and squashed. I sadly can't figure out how to make the Dart build pass... |
No worries, I can take it from here. Thanks so much! |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
BREAKING CHANGE
The ROUTE_DATA token has been removed and replaced with a type RouteData,
allowing a type injection like we do with RouteParams.
Before:
After:
Fixes #4392