Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Question: implementing separate module for SubHeaderComponent #9811


User avatar
0
alexanderpilhar created

9.2.1, Angular, .NET Core

Currently, I'm trying to improve client performance and came accross SubHeaderComponent. SubHeaderComponent is declared and exported by AppCommonModule, which is a shared module that declares and exports many more components.

SubHeaderComponent is a component that I use in all of my custom components and therefore I import it via shared AppCommonModule, also importing all the other components that I don't need - in most of my components SubHeaderComponent is the only component I need from AppCommonModule.

My question is: Woudn't it be better to declare and export SubHeaderComponent via a separate module, e.g. SubHeaderModule?

Let me know what you think!


2 Answer(s)
  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi @alexanderpilhar

    Yes, I think this is a good idea. We are also planning to implement such a modular approach in the next versions of AspNet Zero. Probalby, we are planning to create module for each page.

  • User Avatar
    0
    alexanderpilhar created

    Hi @ismcagdas

    Sounds good : ) thanks for this information!