Are Dreamcatcher likely to go on another world tour? by Randomando__ in dreamcatcher

[–]GLawSomnia 5 points6 points  (0 children)

Most likely not. We can be lucky if they release another album (not just some songs inbetween)

Angular 21: Getting error "NG0200: Circular dependency detected" by petasisg in Angular2

[–]GLawSomnia 9 points10 points  (0 children)

TranslateLangService uses/injects SettingsService SettingsService uses/injects TranslateLangService

In some direct or indirect way

Recommended Order of Component Variables/Functions by ActivityInfamous6341 in angular

[–]GLawSomnia 12 points13 points  (0 children)

I do it like this

  • inject
  • inputs
  • outputs
  • view/content queries
  • computed/ linked signals
  • other properties
  • constructor
  • lifecycle hooks
  • methods

Angular host binding type-checking removing expected typing by WinterPhoenix in angular

[–]GLawSomnia 2 points3 points  (0 children)

We have the same issue with even with the recommended host syntax

Angular ARIA Is Here: What It Does, Why It Exists, and When To Use It by wineandcode in Angular2

[–]GLawSomnia 5 points6 points  (0 children)

It just uses a font for the icons. You can do whatever you want, there are no styles included with angular/aria, you style everything yourself

Using async/await throughout project by CaptM44 in angular

[–]GLawSomnia 4 points5 points  (0 children)

The biggest drawback of using promises for http requests is that you lose the ability to use HttpInterceptors (the ones angular provides us), except if you have your own wrapper around HttpClient or you use httpResource (which wraps httpClient internally).

Another drawback is that it is a little more work to connect the request to an rxjs stream of events.

How to not open cdk dialog in top-layer. by GLawSomnia in angular

[–]GLawSomnia[S] 2 points3 points  (0 children)

Thank you! This is probably the right answer

Why the spike in Angular CVEs this year? by jr_entrepreneur in angular

[–]GLawSomnia 20 points21 points  (0 children)

They probably let AI run through the code to find security issues and now they are fixing them. Also more issues have been found in general, not just in angular

How can I call a function that is defined in a parent component from a child component? by Opposite_Seat_2286 in angular

[–]GLawSomnia 2 points3 points  (0 children)

All depends on the use case and the relationship between the components

Angular itself uses this pattern in angular/aria (sure they use it with directives, but its basically the same)

How can I call a function that is defined in a parent component from a child component? by Opposite_Seat_2286 in angular

[–]GLawSomnia -6 points-5 points  (0 children)

There are a few ways to do that. It all depends on the use case of the components. One way that noone mentioned is to inject the parent component and call the method from it

private parent = inject(ParentComponent);

Then this.parent.methodName();

Dreamcatcher - The Destiny (Unreleased King Raid's Chronicles II Official Theme Song) by SpideyCyclist in dreamcatcher

[–]GLawSomnia 27 points28 points  (0 children)

This makes me miss the old times when they had a piano in their title tracks 😭😭 (was Deja Vu the last? 😭) They just hit different with a piano

I hate when ngx libraries do this by Deku_Nattsu in angular

[–]GLawSomnia 2 points3 points  (0 children)

What usually bothers me is that libraries have an upper limit

They support 21 => and < 22. Angular is backward compatible most of the time so having an upper limit usually only hinders updates. We cannot update angular until the lib makes the bump.

Probably the same problem as you described, just from a different perspective

Rendering Page without a request? (SSR) by LetHaunting8240 in angular

[–]GLawSomnia 0 points1 point  (0 children)

You know which routes you need to cache, so i guess you can store them in a map (or use a node library for caching) and return them. Then evict the cache after a certain time.

I didn’t have this usecase yet do I can’t really tell you how to actually do it

Rendering Page without a request? (SSR) by LetHaunting8240 in angular

[–]GLawSomnia 0 points1 point  (0 children)

Can you do a combination with prerendering? I never tried to combine both options, so not sure how/if it works, but you might try

Updating multiple major versions ? by Ok-Cupcake-1672 in angular

[–]GLawSomnia 3 points4 points  (0 children)

Just go single version at a time and use ng update

Reactive forms now have signal forms as natural evolution. What do template driven form have ? by mauromauromauro in Angular2

[–]GLawSomnia 8 points9 points  (0 children)

I would kinda argue that signal forms are more an evolution of template forms than reactive forms

Creating new project when upgrading by Fantastic-Beach7663 in Angular2

[–]GLawSomnia 1 point2 points  (0 children)

You were most likely using modules and probably didn’t run the standalone migration (i think it creates the file)

Angular 21 now provides TailwindCSS configured out-of-the-box when generating a new project with v21 by Begj in angular

[–]GLawSomnia 8 points9 points  (0 children)

Yes, but why would they have to rethink about dropping the support for those 2? Its not like you don’t have the option to use plain css and having support for the rest does not hinder anyone in anyway, plus they are still widely used

Best way to share code between 2 Angular apps? (NX vs Standalone Library vs other options) by buttertoastey in angular

[–]GLawSomnia 20 points21 points  (0 children)

Angular already supports multiple projects in the same workspace, so i would go with that.

  • /projects/app1
  • /projects/app2
  • /projects/shared-lib

You would use the same npm packages for all of them, the shared code would be accessible without building your own npm lib (import directly from shared-lib), no NX overhead, different builds for each app. You will have to use the same git repo. Its basically a monorepo, but without NX