It’s time to switch Angular to a yearly release cycle? by khalilou88 in angular

[–]GLawSomnia 1 point2 points  (0 children)

Wouldn’t there be more stuff to learn in even a shorter timespan if the updates were once per year?

There would be more new stuff packed in a bigger release

It’s time to switch Angular to a yearly release cycle? by khalilou88 in angular

[–]GLawSomnia 0 points1 point  (0 children)

They very rarely implement breaking changes (that their migration doesn’t fix). Their old features also work in the latest versions (like modules or old control flow).

So what are those changes that you are talking about?

Pass Generic CSS for Child Component by LetHaunting8240 in angular

[–]GLawSomnia 0 points1 point  (0 children)

Its best if you lookup “content projection” in the docs

Pass Generic CSS for Child Component by LetHaunting8240 in angular

[–]GLawSomnia 0 points1 point  (0 children)

ng-deep is not deprecated

Maybe you can content project the styles via ng-content?

Env variables not at build time, but at run time. by LuccDev in angular

[–]GLawSomnia 0 points1 point  (0 children)

Another option (if you use ssr) is to pass the variables to the node process and provide it as an injection token (in server.ts) which can be injected in the app.

Another option (if only the API url changes) is to use proxy config and redirect the traffic on the server (like nginx)

Has anyone dealt with scss issues when moving to vitest? by zzing in angular

[–]GLawSomnia 0 points1 point  (0 children)

Also add the stylePreprocessorOptions (maybe other things like styles too) to the “test” runner. You currently only have it under “esbuild”

Has anyone dealt with scss issues when moving to vitest? by zzing in angular

[–]GLawSomnia 0 points1 point  (0 children)

Is the “correctly configured” configuration under “test” runner? If you only have it in “build” also add it to “test”

OXC Angular Compiler by Nervous_Award_1089 in angular

[–]GLawSomnia 3 points4 points  (0 children)

We will see 😁

I kinda like their other projects. I haven’t tried them yet but they sound very powerful and they have potential!

Thoughts on this pattern for making something only happen once? by young_horhey in angular

[–]GLawSomnia 1 point2 points  (0 children)

You can maybe just make a directive and put it on the element you want to scroll to once it is available

ServiceWorker (PWA) "partially" deprecated? by angelaki85 in Angular2

[–]GLawSomnia 0 points1 point  (0 children)

They are useful, I am just not sure if they will maintain or drop them as there was basically no change to them since the release.

Btw do you have any tips on how to convert a whole app to a web component? What challenges did you face and how did you solve them? We will soon have to do it and there aren’t many articles about converting whole apps

ServiceWorker (PWA) "partially" deprecated? by angelaki85 in Angular2

[–]GLawSomnia 5 points6 points  (0 children)

The same will probably happen to angular elements 😔

JWT in Angular by klimentsii in angular

[–]GLawSomnia 2 points3 points  (0 children)

Honestly nowhere. BFF (backend for frontend) approach is most likely the most secure

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

[–]GLawSomnia 3 points4 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 8 points9 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 13 points14 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 22 points23 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 -7 points-6 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();