How would you optimize the application for better performance in angular 2?
To optimize an application for optimal performance in Angular 2, we have to follow the below-mentioned steps.
- Use of AOT compilation.
- With a large-size app, use lazy loading instead of the fully bundled app.
- Avoid un-necessary import statements in the application.
- Remove unused and unnecessary 3rd party libraries from the application.
- If not required, consider removing application dependencies.
BY Best Interview Question ON 28 Jul 2019