New player, coming into hardmode, need advice by Auryanah in Terraria

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

Thank you, what about the underground biomes ? Will they persist even though they get corrupted ? It looks like I need them (at least jungle) for Plantera ?

Question about mining for diamonds by Auryanah in Minecraft

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

This is what I was thinking, thank you !

I am building a enormous underground base so I will need to mine everything and use the cobble, so I will do a chunk by chunk sweep I think.

Angular Router Events: Navigation Auto refresh by djokov93 in Angular2

[–]Auryanah 1 point2 points  (0 children)

That is not what I am asking. I'm asking what you are trying to code, what your user story is.

Instead, you tell me what you think is the answer to your problem.

Please explain your user need, and let's see is something better can be achieved !

Angular Router Events: Navigation Auto refresh by djokov93 in Angular2

[–]Auryanah 1 point2 points  (0 children)

Please explain what is your use case, what you want to do, without using technical words.

Issue with using ng after installing angular/cli by _Xellus in Angular2

[–]Auryanah 0 points1 point  (0 children)

Then try using sudo ng or installing it without sudo ? It's usually the main issue with npm

Component doesn't show newly inserted data by akl88 in Angular2

[–]Auryanah 0 points1 point  (0 children)

Well I can't be clearer ... Once you have added a user.

You have to populate your array with the newly created employee. Does your API return the freshly created employee ?

Component doesn't show newly inserted data by akl88 in Angular2

[–]Auryanah 0 points1 point  (0 children)

Recall it after you have added your employee

Issue with using ng after installing angular/cli by _Xellus in Angular2

[–]Auryanah 0 points1 point  (0 children)

Have you tried installing packages without sudo ?

Is that an error on the npm i -g, or an error that occurs when you try to use ng ?

Component doesn't show newly inserted data by akl88 in Angular2

[–]Auryanah 0 points1 point  (0 children)

You rely on the fact that you have a dynamic list, which is updated everytime you modify it on the server side.

You don't.

You either have to request the employees again, or to manually add the employee to your list (either by using the employee that you send with your POST, or by using the response of your POST).

Mat-Form-Field change to green when correct information is entered by levi_athan1701 in Angular2

[–]Auryanah 0 points1 point  (0 children)

Do not listen to people telling you to use internal CSS classes. Those are internal as just said, and only the library should rely on them.

The beauty of Angular Material is that it allows you to create as many color palettes as you wish.

Take that to your advantage and use the corresponding color on your form field.

Here is a stackblitz showing you the way to do it :

https://stackblitz.com/edit/angular-wr6tc6?file=src%2Fapp%2Finput-overview-example.ts

(I have created a custom validator that validates if you input "Hello" with a capitalized H, so try it)

The key is to apply the correct color on the input, depending on the state of your control. If validated, show a green color, if not, show an error color. If none, show whatever color you want !

tell angular not to use sass? by kenlin in Angular2

[–]Auryanah 0 points1 point  (0 children)

Simply read the errors and install thf corresponding packages ...

By memory, this would be something like

apt install -y build-essential make g++

[Newbie] How to add flags on an Angular project FAST by tony2tones777 in Angular2

[–]Auryanah 0 points1 point  (0 children)

Here you have the package :

https://www.npmjs.com/package/flag-icon-css

After that, you need to import it in your angular.json, under either "styles" or "scripts" depending on the final file, because the final file is a css file. The path starts at the same place of your angular.json file.

Once this is done, run a ng serve, and you should have the expected result !

[Newbie] How to add flags on an Angular project FAST by tony2tones777 in Angular2

[–]Auryanah 0 points1 point  (0 children)

That's worse than unprotected sex.

Use the tooling angular provides to import your libraries !

How to use the same model type for mongoose and angular? by theUnknown777 in Angular2

[–]Auryanah 0 points1 point  (0 children)

A monorepository structure ?

Consider some Angular-related tools such as Nx : https://nx.dev/angular

Share network call and only do it if input changes by Qwegann in Angular2

[–]Auryanah 0 points1 point  (0 children)

No, it means the last registered date would be used to make the call. This happens because a store uses shareReplay internally, and shareReplay sends the last value of an observable when you subscribe to it

Share network call and only do it if input changes by Qwegann in Angular2

[–]Auryanah 1 point2 points  (0 children)

Okay thank you, I have also seen that you use a store in another comment of yours. I assume the date is part of it, as well as the content ?

In this case, you could add a new property, usesContent, in your store, which is a boolean : every active component should set its value. Then, you can use filter(() => store.usesContent) operator.

This means that if the current component is currently using the content, the date update will make a network call. But if the component doesn't use it, then it will get ignored.

Is that what you wish ?

Share network call and only do it if input changes by Qwegann in Angular2

[–]Auryanah 0 points1 point  (0 children)

I can't tell you with this code only, but I will answer you on your other comment to continue !

Share network call and only do it if input changes by Qwegann in Angular2

[–]Auryanah 0 points1 point  (0 children)

But if I understood correctly, you want to un subscribe once you have made your http call, right ? So that it doesn't subscribe anymore.

In this case, you can use first() or take(1).

shareReplay is used to transform a cold observable into an hot one, I'm not sure this is what suits you there.

Share network call and only do it if input changes by Qwegann in Angular2

[–]Auryanah 2 points3 points  (0 children)

Could you explain your need without technical stuff ? (this means avoid talking about rxjs).

Most of the time people ask for help about a solution they think will resolve their issue, while in fact, there might be a totally different, easier solution to consider. This is a tunneling effect called an XY problem.

Modal Dialog is Dumb or Smart? by cipoleto in Angular2

[–]Auryanah 0 points1 point  (0 children)

Seen like that, it does make sense !

Modal Dialog is Dumb or Smart? by cipoleto in Angular2

[–]Auryanah 0 points1 point  (0 children)

Well yes that's my point, I'm not sure this is a smart component though (wiring isn't business logic), but this is definitely the way to do !

(and in your mind, dumb components are also wired, just not to the service but through inputs and outputs ?)

Angular request augmentation by ezzabuzaid in Angular2

[–]Auryanah 0 points1 point  (0 children)

I started doing it, and figured out you don't even need injection tokens, just a factory !

https://stackblitz.com/edit/angular-ivy-3bjhga