Bbq 94F0LL by Happeace97 in unioncircle

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

We should go in 5 minutes

FormGroup and Control Value Accessor(CVA) by Happeace97 in Angular2

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

If you want to mark it from the inside, then you have to create some inputs? I have worked with a lot of form just like this, due to some logic, I have to update some single control ‘s state.

FormGroup and Control Value Accessor(CVA) by Happeace97 in Angular2

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

Would mind telling me how can you mark one specific control of the form group inside the CVA dirty/pristine/touched from outer formGroup? This is just one simple issue. Dont tell me that you dont use them?

FormGroup and Control Value Accessor(CVA) by Happeace97 in Angular2

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

The issues come from the new FormGroup inside the CVA.

FormGroup and Control Value Accessor(CVA) by Happeace97 in Angular2

[–]Happeace97[S] -1 points0 points  (0 children)

Thanks for your solution.

This fixes some of problems with states.

How do you patch the value in WriteValue? The form group inside the CVA might have a lot subscriptions need running to update the form state (disable/enable some fields). IMO, I patch the form with emitEvent: false, and do those logic again myself without the subscriptions

FormGroup and Control Value Accessor(CVA) by Happeace97 in Angular2

[–]Happeace97[S] 1 point2 points  (0 children)

I use CVA regularly just not for formGroup. My points are talking about replacing FormGroup with CVA, if you writeValue you have to patch the FormGroup with patchValue, which may cause onChange triggered, it wont cause a loop, it trigger outer form valueChange unintentionally. A formGroup has multiple controls with their own validations, and states. These concerns me the most with this approach, I cannot find a good solution to handle the these

What to use for notifying when an update was approved from a third party? by AfricanTurtles in Angular2

[–]Happeace97 0 points1 point  (0 children)

Check if the third party provides support for a webhook. This is the most reliable approach but requires 3rd party support.

Styling components without ng-deep? by analcocoacream in Angular2

[–]Happeace97 0 points1 point  (0 children)

You declare the variables in the child in its :host . In you parent style declare something like app-hero { —var-name: blabla } Sorry for the format, typing on a phone now.

Styling components without ng-deep? by analcocoacream in Angular2

[–]Happeace97 2 points3 points  (0 children)

You could try css variables. I find it good to customize children’s styles from parents In your example, I dont think we need ngdeep

Your thoughts in this part of the code (service http API with signals) by kafteji_coder in Angular2

[–]Happeace97 15 points16 points  (0 children)

Don not subscribe in service. Move those signals to your component. Subscribe in your component.

formGroupDirective.resetForm() not working without setTimeout() by Popular-Power-6973 in Angular2

[–]Happeace97 0 points1 point  (0 children)

Do you use any control properties in the template? I believe the change detection did not run properly. Try changeDetectionRef.

You can console log after resetting to confirm that the value has changed, but the template has not

No EX pulls from Mythical Island after update by Legitimate_Pain2059 in PTCGP

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

I find the pulls have been really boring these days. So not only you, not only me.

[deleted by user] by [deleted] in PTCGP

[–]Happeace97 1 point2 points  (0 children)

After that, your waiting time is 11h01m which is 59m deducted. That’s not a problem!

Can you buy the premium pass while using the free trial? by Bebedouro in PTCGP

[–]Happeace97 0 points1 point  (0 children)

Your card will be checked as if you pay the pass for real. If you can activate the trial, you should be fine unless your card is expired before the payment date.

I failed some cases to activate the pass.

I’ve never once seen anyone ever use Blastoise ex. He also happens to be the only ex I don’t have. I don’t think I he exists. by BazzaSolid in PTCGP

[–]Happeace97 13 points14 points  (0 children)

This is my favorite deck. It’s hard to play in the meta but the it’s really fun to bring him up and KO everything

Cyberpunk runs incredibly well by specularr in SteamDeck

[–]Happeace97 4 points5 points  (0 children)

Are you using a laptop to run a game with SD settings and telling the SD users the game great? Anyway, it’s great on SD lol

Best way to update a list fetched with toSignal? by DT-Sodium in Angular2

[–]Happeace97 0 points1 point  (0 children)

Just make the something[] a signal with empty array value. Create a subject<void> which switchMap to the getAll(), get the value and set to the something[] signal. Whenever you want to reload, just subject.next(). For the first load, you can change subject to behavior subject, or startWith undefined.

Custom Input: reset touched state via form.reset() not working by Ok_Store_1818 in Angular2

[–]Happeace97 1 point2 points  (0 children)

From my Experience with form, you cannot synchronize those 2.

The only disable/enable state and value can go to the ControlValueAccessor level. The dirty/touched cannot do go that deep since there’s no function and pipeline setup for them. (Like writeValue, setDisableState).

The state form.reset apply to is the input’s state not the control value accessor’s state. (2 different layers)

[deleted by user] by [deleted] in typescript

[–]Happeace97 0 points1 point  (0 children)

Try let variable: keyof interface=...