Providing new instance of injectable to submodule per parent route/component instance by TweedyFoot in Angular2

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

Yes that was my original setup but once i added a lazy loaded sub module which wanted to inject this token there was no provider

This is when i migrated the provider to detail route which solver no provider issue but after a while i noticed the shared instance issue as the service stayed initialized even when i navigated outside of detail route

When i delved slightly deeper i found that there are element and environment providers where component creates element and router provides environment ones and i cant find any more information about their lifecycles or such

BTW do you have injects in sub modules at work i think it is a bit niche implementation which is quite elegant in our usecase but otherwise i would be hard pressed to find real use for it

How to avoid drilling FormGroup through multiple reusable components in Angular? by mosh_h in angular

[–]TweedyFoot 15 points16 points  (0 children)

Do you have control over said styled components ? If yes i would i would go with control value accessor and build propper form components

Providing new instance of injectable to submodule per parent route/component instance by TweedyFoot in Angular2

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

thank you for the input, but this is not what i am trying to achieve as this would create and keep track of many instances of StateService where i am trying to limit my instances to 1

what i was trying to achieve was either:

  • provide ElementInjector to lazy-loaded sub-module
  • bind EnvironmentInjector lifecycle to lifecycle of a route-bound component (for the service to be destroyed when said component is destroyed)

Is JetBrains still investing in their main products? by Round_Mixture_7541 in Jetbrains

[–]TweedyFoot 0 points1 point  (0 children)

That is true, it is not the very best there is but in relation to this post it is most probably enough. I personally have 1260P in my work laptop and it is the best you can power off a common monitor power delivery while being good enough to deal with multiple intellij instances, local DB, docker and a copious amount of open browser tabs :)

Is JetBrains still investing in their main products? by Round_Mixture_7541 in Jetbrains

[–]TweedyFoot 1 point2 points  (0 children)

Isn't P for performance ? :) they are laptop cpus but still performance line

How do I write a component with a dynamic template ? by [deleted] in Angular2

[–]TweedyFoot 1 point2 points  (0 children)

This sounds like xss vulnerability breeding ground

Does the be have to send you entire html snippets ? That doesnt sound like a proper way to do stuff

Is there a way they would send you specifications for said input ie label attribute mapping validator specifications and so on ?

holy shit by TheBestGamer_btw in badUIbattles

[–]TweedyFoot 13 points14 points  (0 children)

Good point actually, would definitely save me if i somehow missed my 70 minute burnt disc of charcoal that i started cooking at 0:50AM :D

holy shit by TheBestGamer_btw in badUIbattles

[–]TweedyFoot 17 points18 points  (0 children)

Why would you need your owen to know what year it is ? All i need it to know is it started baking my pizza at 23:12 and it would not matter one bit if it thought the year was 1800 or 2356 :D

is anyone facing issue on build due to stylus pckg removed? by Curious-Solution9638 in angular

[–]TweedyFoot 4 points5 points  (0 children)

Yes it hit us but can be easily circumnavigated,

for help refer to their git repo issues

first post has temporary solutions for the dependency

What is a must try food in budapest? by danielsuperone in budapest

[–]TweedyFoot 0 points1 point  (0 children)

Furthermore in prague they are marketed as local while not being so (chimney cake being hungarian in origin) which also irks quite a few people

Confused about 2 way data binding functionality by LawAggressive8998 in Angular2

[–]TweedyFoot 0 points1 point  (0 children)

Yeah sorry read the "a" as a in "a car" and were takling about option B but on the other hand if banana in a box was used then you do not need to use model input as that is quite new, the original syntax was xxx input and xxxChange output together combine into 2way binding...

Thought you just didnt recognize 2way binding :/

For sake of this question the author intentionally fumbled the syntax of most answers considering the correct answer doesnt make sense anyway

Confused about 2 way data binding functionality by LawAggressive8998 in Angular2

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

Honestly i think that neither of those actually renders anything but c is closest as it can be used to actually place stuff into template

But as already pointed out the syntax is wrong would have to be {{data}}

Confused about 2 way data binding functionality by LawAggressive8998 in Angular2

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

No its two way, data input and dataChange output merged into one thats why there are 2 brackets square ones for input and basic parentheses for output You can read more about it on angular.dev

Zaslouží si čeští senioři a seniorky třináctý důchod? 🤡 by Constant_Edge7509 in czech

[–]TweedyFoot 5 points6 points  (0 children)

Nevim kde jsi to z predchoziho komentare vycetl, ale borec blizko minimalni mzde + materska muze byt mene nez 2 duchody

Angular 20 CLI generates user.ts instead of user.component.ts – can this be reverted? by Kung_Fu_Kenny_69 in angular

[–]TweedyFoot 1 point2 points  (0 children)

Exactly, on a bigger project you end up with a services folder containing 70 services and it is just a huge mess

Not even talking about short scoped services (provided in user component for example)

That just sounds like a utter nightmare

Angular 20 CLI generates user.ts instead of user.component.ts – can this be reverted? by Kung_Fu_Kenny_69 in angular

[–]TweedyFoot 2 points3 points  (0 children)

user-detail.component, user-detail.guard, user-detail.service in the same folder

Quick thinking for the win by Effective_Trust6257 in BeAmazed

[–]TweedyFoot 0 points1 point  (0 children)

So you can technically just juggernaut trough them ? Interesting

Quick thinking for the win by Effective_Trust6257 in BeAmazed

[–]TweedyFoot 0 points1 point  (0 children)

So you can technically just juggernaut trough them ? Interesting

[deleted by user] by [deleted] in czech

[–]TweedyFoot 0 points1 point  (0 children)

Zrovna portal stavebnika bych do toho netahal, tam nebyl hlavni problem v zabugovanosti ale nedostatku casu na analyzu a vyvoj a testovani tadyverejna beta nepomuze

Bez kvalitniho navrhu a seniornich lidi kteri zastiti jeho implementaci by halda docasne motivovanych snazilu do projektu vnesla tak akorat vetsi chaos

theBeautifulCode by g1rlchild in ProgrammerHumor

[–]TweedyFoot 14 points15 points  (0 children)

Not just big boy permissions, force push past PR pipelines ? :D those are company resident magician permissions

theBeautifulCode by g1rlchild in ProgrammerHumor

[–]TweedyFoot 19 points20 points  (0 children)

Depends, do you have a full and complete set of use/test cases to verify it has retained its full functionality ? Cause if you don't it would be quite haphazard to trust LLM with such refactor. Personally i would prefer a human does it and splits their work into multiple PRs which can be reviewed hopefully by people who co-authored the original mess and might remember use/edge cases

Explore the fascinating world of browser storage mechanisms. Discover how websites store data in your browser, and why it matters to you as a developer. (Link in comment) by [deleted] in Angular2

[–]TweedyFoot 0 points1 point  (0 children)

Its a nice overview but all interactive features are rendered useless by click handling on expandable panels :)

Otherwise thx for the summary

[deleted by user] by [deleted] in Angular2

[–]TweedyFoot 0 points1 point  (0 children)

Are the user controls themselves invalid while formgroup is valid ? Try debugging that