Reputation: 8638
I have a large angularjs application. I'm curious what the 'angular way' is to organize such a complex application. Worth noting I'm also using RequireJS.
The page structure looks like:
currently I have it organized something like:
/.
app.js
main.js
/views
administration.html
/administration
/users
...
ticket.html
/ticket
/text
/list
search.html
/search
basic.html
stats.html
dashboard.html
/dashboard
cards.html
/controllers
search.js
tickets.js
administration.js
/administration
users.js
system.js
...
/servies
search.js
ticket.js
admin.js
/directives
chart.js
input.js
select.js
/lib
/angular
/d3
...
Any thoughts?
Upvotes: 1
Views: 1391
Reputation: 13106
This is Google's recommendation:
Best Practice Recommendations for Angular App Structure https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub
Remember nothing is written in stone and you may get better mileage doing something else.
Upvotes: 4