TeamMaestro / angular-native-seed

Build web apps and NativeScript applications from one codebase using the AngularCLI.
265 stars 71 forks source link

Reduce complexity with SharedModule and shareable RouterModule #36

Closed sebawita closed 7 years ago

sebawita commented 7 years ago

This pull request helps reduce the number of files created for each module. This is done by introducing the SharedModule in the form of two files shared.module.ts and shared.module.tns.ts, each containing the standard imports required for either web or {N} projects. Also the RouterModule for {N} and web have been abstracted out in a shareable RouterModule in the common/utils folder, which is divided into RouterModule.ts and RouterModule.tns.ts. Additionally this Pull Request reduces the complexity of the home and +about components.