Reputation: 492
I've got a JSON file containing a list of time zones which I want to reference in my project, but I'm not sure of where I should store this.
I'm considering making a directory called /resources or /assets
Alternatively, I could store in /src/services, as this is kind of the data layer of my app. The one problem with this though is that this file is a JSON file and not actually a service...
Any opinions on where to store this kind of thing?
Upvotes: 2
Views: 5406
Reputation: 172
John Papa's guide is the best when it comes to code structuring: Please refer to this url: https://johnpapa.net/angular-app-structuring-guidelines/
It talks about where you should put certain files and components in your Angular project.
Upvotes: 3