From the course: Angular Performance Optimization Techniques
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Be critical about dependencies - Angular Tutorial
From the course: Angular Performance Optimization Techniques
Be critical about dependencies
- [Instructor] Now, let's discuss how to be critical about dependencies. Dependencies are not a trivial thing to do. And from experience, I can tell that dependencies are one of the things that can make or break an Angular application. And this is easy to understand, right? When people discover npm, they see this massive open-source library where they can pick up pretty much everything and anything for free. So it's easy to just say, "Oh, I need this fancy component. I'll just do an npm install and add it to my project." But the thing is, if you do it too much, then you are going to increase the size of your code base, you're going to have many different dependencies in your project. And the thing is, you can get stuck very often because dependencies are the number one reason why projects get stuck with older versions of Angular. This happens when the maintainer stops evolving the library and stops maintaining it, which happens more often than what we would like. So, it's important to…