Menu

#RedditAngular

124 posts

Feed·
20 of 124 posts
0Read More

Mock browser APIs via injection tokens for SSR, or just use afterNextRender?

#angular#redditangular#safe#browser#mock

Hello, I’m making my Angular code SSR-safe and I’m torn between two approaches for browser APIs (localStorage, matchMedia, ResizeObserver, etc.): Provide an injection token for the API (derived from DOCUMENT, or a platform check) with a safe mock/fallback…

15s
0Read More

Problems with subscribe

Reddit r/angular·u/Putrid-Bookkeeper968·3 days ago
#pSANmZT4
#error#type#people#code#state

Hello everybody I have the following problem with subscribe. My code looks like: this.personSercice.getPeople().pipe( takeUntilDestroyed(this.destroyRef) ).subscribe({ next: (people) => this.state.update(() => ({ ...this.state(), loading: false, people…

15s
0Read More

Three bugs I found in popular open-source Angular apps that no build or test catches

I've been building a static checker for Angular codebases and testing every rule against 19 public repos at pinned commits. Three findings I thought were worth sharing, because each one passes the compiler, the tests and review: 1.…

15s
How I got a 200 MB MHTML file to import on my iPhone in an Angular PWA
📰
0Read More

How I got a 200 MB MHTML file to import on my iPhone in an Angular PWA

#angular#redditangular#manga#reader#mhtml

https://reddit.com/link/1xnp3iy/video/x4u0t5vyrlzh1/player I shared my offline manga reader here a while ago. I’m still working on it, and one thing that kept bothering me was Safari crashing on my iPhone when I tried to import a large MHTML file.…

15s
0Read More

Blocks - An open-source, modular UI library for Angular with custom glassmorphism & lighting engines (50+ components, i18n, a11y)

#angular#redditangular#blocks#engine#lighting

Hello Reddit, I am happy to introduce Blocks to the Angular community. TL;DR: Blocks is a free, open-source Angular UI ecosystem (50+ components, glassmorphism materials & a custom lighting engine) designed to bridge TypeScript logic and SCSS styling…

15s
0Read More

I built Opaline: seeded SVG avatars that render identically on server and client (React, Vue, Angular, Svelte, Web Components; MIT)

#angular#redditangular#opaline#avatar#morph

Hi all. I built Opaline, a small library that turns any string (user ID, email, username) into an avatar. The same seed always gives the same SVG. The problem. Every app needs an avatar before users upload a photo.…

15s
0Read More

How to break up pipe into smaller pieces to make it understable

Reddit r/angular·u/Putrid-Bookkeeper968·3 days ago
#Rw8l3wpV
#person#error#pipe#question#code

I'm very fresh in Angular, so my question can be funny to experts. Hello everybody. Funny question... my code is like this: updatePerson(person: PersonModel) { this.personService.updatePerson(person).pipe( takeUntilDestroyed(this.destroyRef) ).subscribe({…

15s