1

I would like to use angular with a huge application, but because of the way the DI works, Angular needs to load every services of every module during the boot, and so I have the feeling that my application can become very slow.

Does someone have an experience with this case ? We are looking at angular2, but the resources are limited at the moment ...

Thank you for your help.

1 Answer 1

2

If your huge app is one big SPA, then you have to load all the things, because you don't know when navigation will take you where.

Some apps can consist of several independent subapps. In this case, navigation between subapps involves full refresh, but also each subapp is its own angular module, has its own set of dependencies and you can render only those dependencies when showing the subapp.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.