I have an Angular5 application with the following structure:
The Header, Footer and Sidebar components are placed under Shared --> Components. The Header and SideBar component import a service SideBarService (under Shared folder). When a user clicks on the sidebar icon in Header component, a SidebarService is used to toggle the classes applied to the Sidebar component.
My question is: According to Angular 5 application architecture, should the Header, Footer and Sidebar be placed in Shared or in Core Module. As my application has lazy loaded modules, will it cause a problem in future like if one lazy module, example Admin makes change in sidebar using the sidebar service, will this change be visible to other lazy loaded modules?