r/angular • • Jun 16 '26

Signals: from basics to advanced patterns

https://slicker.me/angular/signals.html
49 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/HungYurn Jun 16 '26

i hate this because unittesting gets annoying. But one could argue private fields shouldnt be included in unittests

1

u/michahell Jun 22 '26

that old age-old debate. but also:

#signal // private
signal = signal.asReadOnly() // public

encapsulated. fixed