Is commented components or modules in routes , compiled by the Angular?

  angular, compilation, performance, routes

I have many components in the angular route file. This takes much time for compilation. I got an idea of commenting on unnecessary components in the route file so that the compilation can be faster.

But didn’t noticed much difference in the compilation time.

Is there a way so that I can disable some components or modules from compiling and loading in the UI for better performance.

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.