Introduction
Tree shaking helps remove unused code from your Angular app. This makes your app smaller and faster to load.
When you want to reduce the size of your Angular app for faster loading.
When you have many components or services but only use some of them.
When you want to improve app performance by sending less code to the browser.
When you want to keep your app clean by removing unused functions or variables.