S
S
Selsh2017-02-16 15:27:05
Angular
Selsh, 2017-02-16 15:27:05

How to use modules in Angular 2?

I just can’t understand why you need to use modules, if you can get by with only components (in addition to the root module). Please provide an example of their use.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2017-02-16
@Selsh

Situation. You download a third-party lib for Angular, which has about 50-100 components (any set of ready-made ui controls), and you want to use all these components. Will you manually write them in the declarations of your root module? Or is it easier to just write one module in imports?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question