This is the easiest way to switch between Dark/Light and System mode. π
Simply add an element with the selected `data-theme` mode, or remove it from the DOM to switch to System mode.
It might not be perfect, but it's the fastest and simplest method! π
Posts by Ion Prodan
Back in the days when I learned development, everyone used borders exclusively. Iβm not sure if outlines were a thing back then, at least I wasnβt aware of them.
And borders remain the same today.
Why does it hurt though? π
Sometimes, this is still the most reliable CSS debugger we have πͺ
Image from Netanel Basal.
Debouce in Angular signal form.
Still in WIP.
New encapsulation in Angular 21, and nobody's talking about it! πΆ
Handy for email builders, when you don't want any external styles to affect the builder elements, such as text and images, it should look the same as in an email service.
Still in WIP, btw.
You don't know what this is aboutπ‘!
A long, long time ago, I wanted to 'emulate' the Angular router, but only using CDK Portals and also supporting different outlets, lazy loading, and smooth transitions.
Wait for it, you'll like it! π€
In Angular 21, we will probably have a structural directive `*routerOutletPlaceholder` for the Router placeholder.
It hasn't been merged yet.
The previous idea was to add support for `<ng-container routerOutlet />`, but it was reverted.
What do you think about the placeholder?
Yes, they are! Both of them have their place.
This is the problem, ai helps those who knows what are doing, but most probably will replace who doesnβt know!
Agree, it's not a direct competition, rxjs still has its place in Angular and in general.
RxJS for complex, signals for 90% of cases.
signals > rxjs
(change my mind)
#Angular
Speaking of the `URL` class, let's see if we understand the difference from the old way (see previous tweet).
So, what's the output of this?
Did you know? Thank me later!
How about this?
Do you know you MUST provide a valid reply email address to stay compliant?
Even your no-reply address must be able to receive emails and handle "unsubscribe' requests or anything else the user wants.
It's no longer enough to just include a link!
How would a senior refactor this? How would you do?
I'm so old now to just learning and understanding what cognitive dissonance and confirmation bias are.
I feel a bit ashamed.
I'm planning to start a banking startup! It sounds crazy and feels risky, but I want to do it.
Iβm not alone in this.
But some circumstances aren't in my control.
I hope I can get past them and move on to the easy part: building.
What if we won't need to build the frontend anymore? All we'll need to do is just an MCP π₯
I agree, but I use exhaustMap more often when handling the requests.
And I use `tapResponse` to handle error, next, and finalize.
Yes, great operators, but not used so often, no?
This is mostly all I need from rxjs! π with a few exceptions!
What's your most used rxjs operators?
I remember talking about CDK Portals a long time ago!
Itβs a feature that still exists and is waiting to be used more.
I had an idea back then to 'emulate' the Angular router, but with just portals π.
An experiment that would teach us, and you, in-depth how to use them.
Thanks, Iβll take a closer look!
I started reading again! π
I used to read much more often, but since my son was born, the rules have changedβby 180 degrees!
Now he's five years old! πΆ
I'm trying to get this habit back.
Any recommendations? Startups, coding, tech!
Angular's `canMatch` guard is great!
It allows different pages on the same path.
For example, authenticated users see the dash page, while others see the auth page.
It matches children, but it sends 2 requests if `canMatch` returns false from a child path.
I like this method.
Not the best, but still good!
What company details would you like to see next? I can show them to you for free today! π
All data should be publicly available.
Help, please π
Designers, how can I display all this data? Should I use a table or simple blocks?
It's a lot of data to show!