Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular with TypeScript Where to Store Interfaces used for Type Checking, as well as Smart versus Dumb Components #825

Open
mtpultz opened this issue Apr 11, 2017 · 0 comments

Comments

@mtpultz
Copy link

mtpultz commented Apr 11, 2017

In Angular type checking is possible using interfaces (or as the styleguides suggests classes), but what does the folder hierarchy look like with regards to where interfaces should reside.

I've got a CoreModule, SharedModule, Features, etc all structured using the guide, but there are pieces that I would still like to know where they should be located. Todd Motto suggests placing them in /models, and also suggests the container components and components should be in different folders like /containers and /components in each feature. Is this how the official style guide would suggest doing it as well? I'm not entirely sold on the idea of using these folders.

Before someone mentions that ultimately it is up to a company to decide I am the one starting out in this area with no support other then these style guides and I'm not sure I like /model and /container and /components, and wanted to know what the alternatives might be so I can make an informed decision.

@mtpultz mtpultz changed the title Angular with TypeScript Where to Store Interfaces used for Type Checking etc Angular with TypeScript Where to Store Interfaces used for Type Checking Apr 11, 2017
@mtpultz mtpultz changed the title Angular with TypeScript Where to Store Interfaces used for Type Checking Angular with TypeScript Where to Store Interfaces used for Type Checking, and Smart versus Dumb Components Apr 11, 2017
@mtpultz mtpultz changed the title Angular with TypeScript Where to Store Interfaces used for Type Checking, and Smart versus Dumb Components Angular with TypeScript Where to Store Interfaces used for Type Checking, as well as Smart versus Dumb Components Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant