I
I
iluxa18102019-03-13 14:02:18
Angular
iluxa1810, 2019-03-13 14:02:18

Multiple modules in an application maybe?

In general, I'm learning Angular and have some questions about modules.

  1. Do I understand correctly that 1 application is 1 module?
  2. Can multiple modules be used in one application? If yes, what is the purpose of doing so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-03-13
@Xuxicheta

As many modules as you want.
A module is a frame structure on which components, services, and so on are attached. As a rule, one functional unit is a module.
For example, some complex element is made from several components and a couple of services and imported by the module.
Or another example - a lazy loading module, a page or several, loaded only when needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question