Angular: Best Practices
Armen Vardanyan
1.2K18

Great recap! You really have an insight into Angular.

As you mentioned “having (a) Utilities Service”, I found that I just made the utilities a plain JS file, like

export const utils = {

a(){ }

b(){}

// …

}

Use it like:

utils.a()

So, my question is what’s the difference between these two ways? Which one is better and why.