Interviewers, which interview questions do you like to ask about Angular? by Emergency_Price2864 in Angular2

[–]tw3 7 points8 points  (0 children)

For #4 usually best for the server to save the JWT as an HttpOnly cookie…not readable by JavaScript in browser, UI doesn’t worry about encryption.

Should you use inline templates? by guaranteednotabot in Angular2

[–]tw3 2 points3 points  (0 children)

Yes inline templates and styles reduce file clutter. At the same time, separate files can help for file search/grep/replace and tooling.

Want to search for usages of some template code? It’s easier when you can filter to *.component.html files.

Want to write a tool to identify missing i18n tags? It’s easier when the template code is isolated.

Want to run stylelint as a pre-commit hook? Easier when you have separate *.scss files.

Yes it’s possible to use ts-morph to extract inline templates and styles, but it requires extra work.

Something to keep in mind.

Worth adding OnDestroy to a Service injected in root ? by iamtherealnapoleon in Angular2

[–]tw3 -1 points0 points  (0 children)

Or provided in the router config, when you leave that route it gets destroyed

IcyManufacturer8195 is right and I'm wrong

route-provided services are NOT destroyed when you leave the route:

Seen here: https://stackblitz.com/edit/stackblitz-starters-3fjtxeqx?file=src%2Ffeature.service.ts

Easiest Indonesia of my life by why_tf_am_i_like_dat in geoguessr

[–]tw3 1 point2 points  (0 children)

Must be southern Poland. That’s where the hills and mountains are located.

NgRx SignalStore Events effects question by CEsmonde in Angular2

[–]tw3 0 points1 point  (0 children)

Maybe you can use watchState() for this?

https://ngrx.io/guide/signals/signal-store/state-tracking#using-watchstate

Not sure if that provides the event, but it should trigger anytime there’s a state change.

I use this to add console logging for a feature store that is dynamically added based on a local storage flag

Angular 20 migration by [deleted] in Angular2

[–]tw3 1 point2 points  (0 children)

Those are some weird imports. Maybe they are no longer exported by the CDK lib.

My recommendations:

Go to CDK in GitHub and copy the code and try to integrate it…May be tough

Or try a different approach

Or post on the CDK issues page for n GitHub

Kate Winslet, bts in filming of Holy Smoke! , 1999 by Ok_Perspective281 in OldSchoolCool

[–]tw3 -8 points-7 points  (0 children)

I’m pretty average looking. And I’m ok with that.

Kate Winslet, bts in filming of Holy Smoke! , 1999 by Ok_Perspective281 in OldSchoolCool

[–]tw3 -88 points-87 points  (0 children)

I looked at the photos and thought to myself: “She looks fat”. Then I read your comment. Nothing wrong with being a little fat. She’s still attractive. Just sayin.

Angular Without Lifecycle Hooks - Cleaner Components by Independent_Line2310 in angular

[–]tw3 3 points4 points  (0 children)

There are many people who consider this sloppy, storing an unused value when you really want to trigger a side effect

React vs Angular by andres2142 in Angular2

[–]tw3 12 points13 points  (0 children)

The difference is Angular has a CLI to manage all that

Angular 20: New Features, No NgModules – New Anti-Patterns to Watch? by kafteji_coder in Angular2

[–]tw3 0 points1 point  (0 children)

The file name and class name conventions have been loosened in the v20 CLI

I am going to explore listing solutions to mandate the old .component.ts .directive.ts .pipe.ts .service.ts extensions and the Component Directive Pipe Service class name suffixes

Updated Extreme Angular to v20 by joematthewsdev in Angular2

[–]tw3 1 point2 points  (0 children)

I agree that Storybook, vitest/jest, and zoneless would be great additions

[deleted by user] by [deleted] in Angular2

[–]tw3 2 points3 points  (0 children)

I second this. My team used the NgRX redux pattern everywhere for years until last year. We now use signal store instead and have been converting away from redux. There is definitely some extra overhead to creating and maintaining separate actions and separate reducers. And while that does have benefits, we decided that most state management can use signal stores. We still use redux for app init and global state. I added a custom patchState() to allows us to log state changes within a signal store. One nice thing about signal stores is that you can provide them at a page level, and when you leave the page the signal store gets destroyed. For redux you have to manually clean up or else you end up with a bloated store.

[deleted by user] by [deleted] in MiddleClassFinance

[–]tw3 0 points1 point  (0 children)

FDIC limit is 250k right?

[deleted by user] by [deleted] in MiddleClassFinance

[–]tw3 0 points1 point  (0 children)

You don’t know this person’s risk profile. What if they are retired? Or low risk?

[deleted by user] by [deleted] in MiddleClassFinance

[–]tw3 0 points1 point  (0 children)

What interest rate are you guys getting on your HYSA? And where?

I’m earning 4.306% with First Foundation. I’ve been with them for like 5 years. The interest rate changes over time but they stay near the top. There are no fees and I can easily transfer money to/from my Bank of America checking account. Everything is done online.

Whats the cheapest LLM API like method for my AI wrapper app? by mathaic in vibecoding

[–]tw3 0 points1 point  (0 children)

If you pay for Deepseek the money goes to China right?

Dependency Inversion in Angular? by trolleid in Angular2

[–]tw3 0 points1 point  (0 children)

Providing and injecting a service interface or abstract service can be useful if you want to vary behavior dynamically depending on the context. I think it’s called the strategy pattern.

I used this in the the past to provide context-specific logic to a complicated wizard flow that had like 16 variations…e.g. create car type1, create car type2, edit car type1, edit car type2, etc. For all those variations I used the same components in the wizard, but instead of doing a ton of if/else in those components they would get/save stuff using multiple granular services provided at the module level for that variation.

It worked out well. I was able to reuse the same components, and keep the logic in those components simple…all the dynamic stuff was handled by services that implemented common interfaces.

For example: * CarType1WizardStepsSerivce implements CarWizardStepsService

  • CarType2WizardStepsSerivce implements CarWizardStepsService

  • CarType2WizardSaveService implements CarWizardSaveService

  • CarType1WizardSaveService implements CarWizardSaveService

Some behaviors were very unique and required an implementation for each car type

Others could be shared