gothinkster / angular-realworld-example-app

Exemplary real world application built with Angular

Home Page:https://angular.realworld.how/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't follow Angular Style Guide regarding "Core" feature module

shaungrady opened this issue · comments

https://angular.io/guide/styleguide#core-feature-module

The Angular Style Guide advises putting singleton services and single-use classes into the Core module. This app has everything in the Shared module.

Would also like to see this implemented. Having some confusion around what goes in shared vs core and how they should each be used throughout the app.

To add onto this, the SharedModule shouldn't be re-exporting the HttpModule since it's a provider only module. It seems like this should just be imported in the AppModule (or possibly the core module)?

The NgModule FAQ mentions this here:
https://angular.io/guide/ngmodule-faq#what-should-i-not-export