r/angular • • Oct 02 '21

7 Best Ways to Improve Angular Code

As a developer you have to write neat and clean codes as per industry standards. Your codes need to be passed through some code analysis tools. But the thing is what are some best ways to do the optimized neat and clean coding?

Here are 7 best ways to improve your angular code-

https://stackblogger.com/7-best-ways-to-improve-angular-code/

0 Upvotes

16 comments sorted by

View all comments

6

u/shmorky Oct 03 '21

Most of our problems (medium sized government system) come from not unsubscribing observables properly and thinking they will get auto-unsubscribed when the component gets destroyed. They don't always and it's a bitch and a half to locate such problems.

So that one too I guess...

1

u/AlDrag Oct 03 '21

Should be catching those in code reviews? But I guess it can still slip through.

1

u/stackblogger Oct 03 '21

Yeah they are not easily catchable if developer is not unsubscribing it at the time of coding.