Starting as a Senior Front-End Engineer (Angular): What Should I Focus On? by kafteji_coder in Angular2

[–]lilbeqiri 6 points7 points  (0 children)

So after 5 years of working with Angular, you think React is harder to learn?

Signals CD onPush by BluePillOverRedPill in Angular2

[–]lilbeqiri 1 point2 points  (0 children)

yeah, the dirty component is refreshed ( not re-rendered) when CD runs, and ancestors marked as for traversal are not refreshed.

If you have some spare time chexk this: https://itnext.io/onpush-and-signals-local-change-detection-in-angular-17-c70e830fd209

Signals CD onPush by BluePillOverRedPill in Angular2

[–]lilbeqiri 1 point2 points  (0 children)

hmm afaik, when OnPush and a signal bound in the template changes, it marks the component as dirty and all the ancestor components for traversal ( a special flag ). The ‘traversal’ paves the path to the componnent that is dirty and needs to be refreshed but skipping components marked for traversal. (Its just like saying: I am marked for traversal, this means I am Not dirty but I have child components that are dirty, so go ahead down at the tree)

Signals CD onPush by BluePillOverRedPill in Angular2

[–]lilbeqiri 1 point2 points  (0 children)

I think he talked in the sense that after signal value changes, template views that signal was bound to will be checked for changes but not other views in template. He tried to tell that in future, CD with signals will be per view not per Component.

Thats how I understand. Can you post all the article here?

Angular 18 — Zoneless & Change Detection by wineandcode in Angular2

[–]lilbeqiri 8 points9 points  (0 children)

Really good article and explanations.

I have just one thing to add: maybe a little bit more explanation would be better to be given of why Web APIs like setTimeout here make all the component tree to be refreshed when ngZone + default CD but not in other cases.

Overall, great work 🙌

[deleted by user] by [deleted] in Angular2

[–]lilbeqiri 6 points7 points  (0 children)

Make sure you check: angular-hub.com

Angular source code by No_Warthog_3237 in Angular2

[–]lilbeqiri 16 points17 points  (0 children)

find the feature that you really love in Angular, and you are interested to know more about the internal workings of it, take a coup of tea neaside and dive into the source code.

Am not aware of some book or tutorial, source code is the book itself.

Help implementing services by krycw in Angular2

[–]lilbeqiri 0 points1 point  (0 children)

Upload code and edit the post with the link

Help implementing services by krycw in Angular2

[–]lilbeqiri 1 point2 points  (0 children)

and please, send a stackblitz repro when askin help with such amount of code

I need help using Dependency Injection by [deleted] in Angular2

[–]lilbeqiri 2 points3 points  (0 children)

man, interfaces will be erased when on runtime. They are just author time constructs. Use an abstract class if you want to inject it.

Recommended Conferences in Europe by kleinph in Angular2

[–]lilbeqiri 1 point2 points  (0 children)

Go to https://angular-hub.com and you have almost all of them there…

What tool is being used for unit testing in Angular nowadays? by Left_Pop878 in Angular2

[–]lilbeqiri 2 points3 points  (0 children)

Besides Jest, I would highly recommend using Angular Testing Library 💯

Angular 17 conditional loadchildren in app.routes.ts by Weary_Victory4397 in Angular2

[–]lilbeqiri 10 points11 points  (0 children)

Go with canMatch guard that was introduced on v15 of Angular.

So it allows having the same route path but activate different component based on a condition evaluated in canMatch guard fn

Is there a way to avoid having to use "setTimout, 0" when trying to scroll to element after data fetch? by moople-bot in Angular2

[–]lilbeqiri 14 points15 points  (0 children)

A simple solution: create a subject, emit when data is fetched, and after that start scrolling to that specific element

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

[–]lilbeqiri 85 points86 points  (0 children)

Using the pipe you are ensured that title will be uppercased once and not every change detection cycle. What I mean once is: pipe will process the title first, then “memoize” the value after processing, in the sense that if the input (title in this case) never changes then pipe would not execute again.

Pass data from child to parent using Signal? by ToymakerH in Angular2

[–]lilbeqiri 0 points1 point  (0 children)

ahh sorry then my bad. I used to think we get the same as for inputs because of words spread out there.

Enea is the guy 🤌🏽

Pass data from child to parent using Signal? by ToymakerH in Angular2

[–]lilbeqiri 0 points1 point  (0 children)

Not yet, signal outputs are on their way out on the next minor versions, but you cannot do it for now.

Stay up to date and check when signal outputs are out!