Angular πŸ‡ΊπŸ‡¦ - practical notes
1.63K subscribers
1.6K photos
1 file
532 links
Angular - practical notes

This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!
Download Telegram
πŸ€“ Code Review Checklist for Angular Developers

#angular #review

Service Injection πŸ“›:
It’s recommended to check and review the dependency injection to components and recommended to use TypeScript’s access modifiers (private, public, etc.)
πŸ”₯1
πŸ€“ Code Review Checklist for Angular Developers

#angular #review

Observable Cleanup πŸ“›:
Sometimes, we find ourselves fetching data with observables, doing the subscribe and cleanup in ngOnDestroy
I would recommend using the async pipe to simplify the component code.
πŸ€“ Code Review Checklist: Magic Values πŸ“› πŸ’£

#angular #review

It is recommended to use constants or enums to make the code more readable and maintainable and avoid magic values
πŸ”₯1
πŸ€“ Code Review Checklist: Consider Extracting logic to Services πŸ“›

#angular #review

If we find out that part of the component logic can be reused in many places, we can optimize that by extracting this logic into services for better code organization and reusability
πŸ€“ Code Review Checklist: Hard-Coded Styles πŸ“›

#angular #review

Be careful when using inline styles like style="margin-top: 12px".it can be hard to maintain