What's the difference between an Angular component and module

前端 未结 7 1724
春和景丽
春和景丽 2020-12-22 14:51

I\'ve been watching videos and reading articles but this specific article make me so confused, at the start of the article it says

The applications in An

相关标签:
7条回答
  • 2020-12-22 15:37

    Components control views (html). They also communicate with other components and services to bring functionality to your app.

    Modules consist of one or more components. They do not control any html. Your modules declare which components can be used by components belonging to other modules, which classes will be injected by the dependency injector and which component gets bootstrapped. Modules allow you to manage your components to bring modularity to your app.

    0 讨论(0)
提交回复
热议问题