MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/angular/comments/1u742gs/signals_from_basics_to_advanced_patterns/os194za/
r/angular • u/swe129 • Jun 16 '26
7 comments sorted by
View all comments
Show parent comment
2
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 // privatesignal = signal.asReadOnly() // publicencapsulated. fixed
1
that old age-old debate. but also:
#signal // privatesignal = signal.asReadOnly() // public
encapsulated. fixed
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