What is the role of Angular core module?

前端 未结 3 2165
臣服心动
臣服心动 2021-02-09 10:10

I read an article about organizing folders in Angular and the author uses one called core, in which he creates the core module and insert only services which will b

3条回答
  •  北海茫月
    2021-02-09 10:20

    Generally Core module is used in order to keep all API services and other common services (like NotificationsService, ConfirmationService, AuthorizationService etc) that you have in your application in the providers[... ] section. Then, the app.module will use your core.module in the imports section.

提交回复
热议问题