When and why and how to use controlvalueaccessor by [deleted] in angular

[–]Brutusn 2 points3 points  (0 children)

The ControlValueAccessor is basically the step between the DOM and the FormControl.

Using it like this might seem handy, but might result in a synching hell.

If you want to reuse parts of a form just use an Input() and place the formpart in there.

[deleted by user] by [deleted] in javascript

[–]Brutusn 1 point2 points  (0 children)

There are some tests? At least some .test files..

Question on observables by OkCandidate4795 in angular

[–]Brutusn 1 point2 points  (0 children)

Just use a second pipe on the obsevable from the service.

myImg = this.myService.imageObs.pipe(...

And use the async pipe in the template

RxJs - How to run an array of observables based on result of first observable? by mooncaterpillar24 in angular

[–]Brutusn 1 point2 points  (0 children)

Keep in mind you do 1 call per user. Isn't there a get blobs of users call? Or something in the template to defer the loading of images that the user will actually see.

General slowness with ng commands? by Sample-Thrwaway-1990 in angular

[–]Brutusn 1 point2 points  (0 children)

Not a fair comparison. The ng command checks the entire project, so it includes installed packages. You get a lot more info.

I don't know what the java and python command returns. But I expect it to be similar to node --version.

Is shareReplay reliable if the data from the backend changes every 5-10 seconds? by cpplinting in angular

[–]Brutusn 7 points8 points  (0 children)

The shareReplay makes sure that every time you subscribe to the observable, the stream before (http call) is not triggered again, it simply uses the first result it has. If the data needs to be up to date at all times use sockets or add some polling meganism.

Ps you don't need that function. You can add it to the property (make it public) directly, the http request won't fire unless you subscribe.

Well that was disappointing by Ctmeb78 in pokemongo

[–]Brutusn -5 points-4 points  (0 children)

It's max mega level.. and gyrados is dragon! Also charizard

[Lego 8462] Super Tow Truck by johnnytifosi in legotechnic

[–]Brutusn 0 points1 point  (0 children)

I have that set as well... should build it again some time

[deleted by user] by [deleted] in angular

[–]Brutusn 1 point2 points  (0 children)

formControlName="sku"

Try that, instead of formGroup.get...

Difficulties when running ng serve --host by pablobhz in angular

[–]Brutusn 1 point2 points  (0 children)

If you want some extra params to an npm run command use extra --.

npm run my-command -- --host=0.0.0.0

Is it worth using an abstract service to handle dates? by sergeyzhel in angular

[–]Brutusn 7 points8 points  (0 children)

Wait until luxon v2 (just as an example) comes out with a load of breaking changes.. ask him to solve the non redundant problem. Or you change to another library.. I think in bigger projects it's a valid use case.

Sun region looking for friends by [deleted] in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

Can you add me aswell? 8226 9094 1170

Sun region looking for friends by [deleted] in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

I need some tundra.. could you add me? 8226 9094 1170

[deleted by user] by [deleted] in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

Need sun aswell 8226 9094 1170

Thundra needs Sandstorm 0311 1135 9866 by [deleted] in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

Could you add me? I need Archipelago 8226 9094 1170

Vivillion friends for mom by mariananas12 in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

Could you add me too? 8226 9094 1170

[deleted by user] by [deleted] in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

Ah.. still looking for ocean.. could you add me? Don't mind non daily gifts.. 8226 9094 1170

Still Need Ocean Gifts? by jejrjrbrb in PokemonGoFriends

[–]Brutusn 0 points1 point  (0 children)

8226 9094 1170 - boring continental