Been working on the showcase project I will be showing longer than I knew I would be showing it anywhere. Looking forward to being on the stream again.
#Angular 22 is coming! A lot of exciting things are happening, and one of them is having @MichaelSmallDev on!
The very first guest of our streams is back to help us navigate through what changes the new Angular version brings, so tune in tomorrow at 4:30 PM UTC!
@michaelbe812@Armandotrue Alright, there is still the root issue with Angular 22+ and Stackblitz projects out of the box, but someone on the Material docs figured out a workaround. It should work to open now.
🚀 New in #Angular 22.2
👀 try...catch for templates
✔️ @boundary - Native Error Handling
Angular 22.2 introduces native error boundaries to templates with the new @boundary control flow block.
Watch now: https://t.co/BRYJrxPGHa
@michaelbe812@Armandotrue You may have to download it. I made fresh Stackblitz starter just now and updated it with the CLI to v22 and it won't even start. So this example today doesn't run anymore... ugh
@michaelbe812@Armandotrue Try again now, I had it accessible by URL and not private by link but I guess it thought it was private for some reason. I just made it public and it opened in incognito now.
@michaelbe812@Armandotrue I wrote all this up in a stackblitz example. As you increment a signal with a button, you alternate between a mock async value and a mock async error.
https://t.co/GH0sc7wjt8
Links to the code, explanation, a couple caveats, and how to provide globally.
@michaelbe812@Armandotrue I am hoping that the Angular team makes this type of API first class. This is what I wanted resource snapshots to actually be.
If you do try this API out, it is experimental ATM and use this PR fix: https://t.co/e92Be43jMF. But I love it and use it in non store projects.
@michaelbe812@Armandotrue If you use resource extensions (can pull down folder w/o any other deps on the package), you can set the root ext for resources and no more flickering https://t.co/qlr3i7RFu4. I set withPreviousValueOn(Loading/Error) once in root. Then just wrap resoruces in `extendResource` fn.
@erkamyaman_ng Recently a PR bot told me that a method for forms did not exist, and it cited one of the skills, saying that the method was not in the skill. Ugh.
@Enea_Jahollari@BrooksLybrand https://t.co/1dieoOEPd3
Draft PR to remove this particular fn, but if I am assuming right, it looks like it succeeded by `providePlatformNavigationRouter`. That new proposed provider is still tagged as experimental at this moment.
@angular Is "Angular v22 stabilizes migration schematics: ✅ ng generate refactor-jasmine-vitest is production-ready" true? It is still tagged as experimental in the source https://t.co/S5OSQrSElp
🚀 New in Angular 22
✔️ @Service Instead of @Injectable
Angular 22 introduces the new @Service decorator, offering a cleaner replacement for root-scoped @Injectable singletons.
Watch now: https://t.co/xouYBtWhl4
#angular
New ng-news episode: PrimeNG's licensing change, OpenNG's community fork, A2UI for #Angular, routerResource, and Micro-Frontends.
Recorded by @MichaelSmallDev
🎬 https://t.co/rlrE5Oh77P
@codeofarmz@AngularLovePL No need to break out an entire second variable. Just wrap the resource. As long as you don't need the manually set/reload of the resource, then this is the most streamlined without needing this auxiliary reference.