Code Organization in Large AngularJS and JavaScript Applications
1–10 of 24 posts
Re: Code Organization in Large AngularJS and JavaScript Applications
#2Re: Code Organization in Large AngularJS and JavaScript Applications
#3Body text is really light making it hard to read, at least on my eyes. The content seems interesting though.
Re: Code Organization in Large AngularJS and JavaScript Applications
#4Body text is really light making it hard to read, at least on my eyes. The content seems interesting though.
Thanks for the feedback. I made the text darker.
Re: Code Organization in Large AngularJS and JavaScript Applications
#5Body text is really light making it hard to read, at least on my eyes. The content seems interesting though.
Thanks for the feedback. I made the text darker.
Re: Code Organization in Large AngularJS and JavaScript Applications
#6God forbid I try to edit multiple components at a time, and forget browsing my repo on github. Organization like this would make life so much easier in so many ways.
Re: Code Organization in Large AngularJS and JavaScript Applications
#7I'm building a django/angular app. Each django app gets its own angular module, and each angular module roughly shares the seed structure, but may be broken into more files (much like the second example in TFA). So my whole structure looks something like:
django-project/
app1/
views.py
static/
coffeescript/
app1.coffee #defines the module
app1/
directives.coffee
controllers/
foobaz_controller.coffee
...
The only thing I'm not keen on is the duplication of "app1" in the directory structure. It is done to prevent conflicts when static files are collected, but is redundant during development.Thinking through this, I might be able to build a static files finder that looks for an angular directory in the django app and puts it in the right place. I'll have to think about that, since there are a lot of moving pieces with pipeline, et al, involved in the chain.