Designing model structure


#1

Hi, guys. I wonder should I create an individual directory for each page component inside a model directory?
Assume that I have users and files page components.
Not quite sure how to design the model structure. Please share your brilliant ideas with us. Thank you.

   ├── app
   ├── models
       |── users
       │   |── Users.ts
       │    └──interfaces
       |   |   └── IUsers.ts
       |── files
           |── Files.ts
           └──interfaces
               └── IFiles.ts

#2

I recommend you read the official Angular style guide. There’s a lot going on in your post. For example, putting an I in front of an interface name is discouraged.

Start here: https://angular.io/guide/styleguide#folders-by-feature-structure


#3

Thank you for the response @AaronSterling. I’ll read the documentation :slight_smile: