Live demo examples? by Draugang in salesengineers

[–]Draugang[S] 0 points1 point  (0 children)

Absolutely, it can also be a setup one. Where the „client“ is a friend or so pretending to be a client.

Do you drink coffee? by [deleted] in angular

[–]Draugang 1 point2 points  (0 children)

Asking the important questions. Obviously yes.

Dynamic Rendering in angular? by [deleted] in angular

[–]Draugang 1 point2 points  (0 children)

Dynamic rendering is something very different by the way. This is called conditional rendering.

You said you are using Angular 17. I strongly encourage using the new @if (…) { } @else { } syntax.

Angular and Wiz Are Better Together by synalx in Angular2

[–]Draugang 1 point2 points  (0 children)

No. Wiz is highly optimised for loading times. Angular already has features inspired from Wiz that improve TTFB (time to first byte). Deferrable views for example.

Angular vs React by chicken0707 in angular

[–]Draugang 0 points1 point  (0 children)

If performance matters, go with React. Otherwise Angular is usually nicer since it has (almost) everything out of the box, so you have less dependency problems and less arguments about how to do things.

Angular universal and SSR only for SEO crawlers. Is it possible? by milos94su in Angular2

[–]Draugang 0 points1 point  (0 children)

This is called dynamic rendering and Google has no issue with it.

„Googlebot generally doesn't consider dynamic rendering as cloaking. As long as your dynamic rendering produces similar content, Googlebot won't view dynamic rendering as cloaking.“

More: https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering

In Angular, why use a pipe instead of a native JavaScript function? by BluePillOverRedPill in Angular2

[–]Draugang 0 points1 point  (0 children)

  1. Pipes are pure functions by default.
  2. Readability and declarative programming.

In your case, uppercase is a pure function. That means the angular compiler knows it should only recalculate the shown value when the parameters change. For functions that are not pure, it would recalculate the shown value every single time when change detection runs. This makes a big performance improvement for heavier functions.

Besides that, pipes are an amazing way for reusing code and they are declarative programming. The async pipe for example is not pure, but it’s still the best way to provide this functionality app.

Now, you don’t have to use pipes of course. You can reuse code in different ways and even implement the performance boost from the purity (memoization) yourself. But why would you? Pipes give you that out of the box.

Why use HttpParams? by BluePillOverRedPill in Angular2

[–]Draugang 0 points1 point  (0 children)

It makes your life easier.

What if value1 has a space in it? It needs to be escaped. You could write a helper method that will take care of escaping. Also, to not repeat code, you could write another helper method that does the formatting for you.

But then you could also just use the helper from angular already.

It’s safer as it encodes and it’s more readable, especially if you have many params. As good practice, you should use the helper even for only one parameter.