This commit moves the code towards using a SharedModule for commom imports, i.e. the CommonModule, FormsModule and TranslateModule. It also changes the import of BrowserModule to CommonModule whereever possible, since the first should only be imported by the application root.
In addition, providing the translations to TranslateService is also part of the shared module, since it's not used as a component itself and thus more suitable here.
Extracted from https://github.com/flaviait/ng2-jspm-template/pull/38 .
This commit moves the code towards using a
SharedModule
for commom imports, i.e. theCommonModule
,FormsModule
andTranslateModule
. It also changes the import ofBrowserModule
toCommonModule
whereever possible, since the first should only be imported by the application root.In addition, providing the translations to
TranslateService
is also part of the shared module, since it's not used as a component itself and thus more suitable here.@svi3c