refactor(core): Add custom formatters for Signals#64000
refactor(core): Add custom formatters for Signals#64000JeanMeche wants to merge 1 commit intoangular:mainfrom
Conversation
fb874b8 to
0fe629b
Compare
dgp1130
left a comment
There was a problem hiding this comment.
Some quick initial thoughts, I recognize enough of my own code to know I'm critiquing myself as much as you. 😅
8eca1d8 to
06a3d3b
Compare
06a3d3b to
be7335d
Compare
devversion
left a comment
There was a problem hiding this comment.
LGTM for public API (even though this is technically excluded anyway, via https://github.com/angular/angular/blob/main/contributing-docs/public-api-surface.md)
Reviewed-for: public-api
thePunderWoman
left a comment
There was a problem hiding this comment.
It feels a bit weird to me to put a devtools related formatter inside the primitives folder. I would expect the primitives folder to contain solely things that are primitives related.
|
This is directly related to the primitives themselves, here the signals. I would expect both Angular and wiz to actually use that formatter. |
|
@JeanMeche But would the wiz team be importing this itself from the primitives folder or would they just be installing devtools? I'm just wondering if it's better to organize this with the devtools code rather than inside the signals codebase. Would this ever be used outside of devtools? |
|
This is not related to the Angular devtools, but the browser devtools themselves. A custom formatter influences how references are displayed in the sources, the console, etc. |
|
@JeanMeche Thank you. That clarifies it for me. 👍🏻 |
be7335d to
663f7f3
Compare
dgp1130
left a comment
There was a problem hiding this comment.
The Wiz point is a good callout, I can mention this to some Wiz folks once it lands to make sure we install the formatter automatically in the right place so Wiz gets the same benefit.
e56b7c6 to
4405983
Compare
|
Caretaker note: This change doesn't require a TGP, it doesn't affect existing code |
4405983 to
8f93b66
Compare
|
|
|
Presubmit is failing and I'm not sure why. |
mturco
left a comment
There was a problem hiding this comment.
This is pretty cool! And fwiw I agree that it being in the primitives code makes sense
Reviewed-for: primitives-shared
|
@mturco, once this lands, we should figure out where the right place in Wiz is to install it. I feel like this should "just work" for Wiz developers as well. |
039306f to
9230be6
Compare
This commit adds a devmode only formatter for Angular signals Custom formatters must also be enabled in the browser devtools.
9230be6 to
460e13e
Compare
|
TESTED=This change doesn't require a TGP, it doesn't affect existing code |
This commit adds a devmode only formatter for Angular signals Custom formatters must also be enabled in the browser devtools. PR Close #64000
This commit adds a devmode only formatter for Angular signals Custom formatters must also be enabled in the browser devtools. PR Close angular#64000
|
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. |
This commit adds a devmode only formatter for Angular signals
Custom formatters must also be enabled in the browser devtools.
Demo:

TESTED= This change doesn't require a TGP, it doesn't affect existing code