-
-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
Hi,
we would like to be able to have this:
// Signal
id = injectParams.required('id');
rather than this
// Signal<string | null>
id = injectParams('id');
// nd then in template to do:
id()!
or this:
id = injectParams<string>((params)=> params['id'] as string);
to get correct typing for required route parameters. To get correct typing without need to define parse / serialize options
I am wiilling to provide PR.
So this issue is more for having a discussion about this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels