Answer the question
In order to leave comments, you need to log in
Angularjs: how to properly organize the code of a large project?
Hello!
Having problems organizing the code of a large project when using angularjs.
I will give an example by analogy with the angular-app architecture.
Let's say the project has 4 pages: main (main), details (details), profile (profile), admin panel (admin). The pages are completely isolated with links to each other. In other words, the project is not a single page.
directory structure is like this:
app
---main
-----main.js - модуль
---details
-----details.js - модуль
---profile
-----profile.js - модуль
---admin
-----admin.js - модуль
app.js
angular.module('app', [
‘main’,
‘details’,
‘profile’,
‘admin’
])
Answer the question
In order to leave comments, you need to log in
As far as I understand, there is an active discussion of this issue in the developer community now: blog.angularjs.org/2014/02/an-angularjs-style-guid...
There is also a link to a document describing the typical project structure.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question