Hi,

I've been playing a bit with AngularJS and decided to use it to build a 
literal one page application (http://kdm-webforms.com/) and source 
(https://github.com/LupusUmbrae/KDM).

This site started as quite a small application, replicate the functionality 
of a couple of forms as a website, but as its gone on the main JavaScript 
file has just grown, im hoping to pull it apart into modules and services 
but i could really do with some pointer/advice and what route i should take 
for it.

To give you the gist of what this site does. There are two types of forms 
(stored as JSON, and imported/exported as json), each instance is in a tab, 
there is not cross tab information so they are isolated from each other. 
There are a number of dialog for for confirmation of interaction and some 
have small forms in them that then effect the tab that opened them

The issue i have is in deciphering how the different aspects of the code 
should be encapsulated (Modules, Controllers, Services ect). As i have a 
single page it seems like i should have a single module, however i believe 
i should be able to break some of the functionality out of the main module, 
for instance breaking all the dialog code out and putting it elsewhere 
would really reduce the size of the JavaScript file. I'm also working in 
another branch to implement communication with a backend.

I've been struggling to get my head around how to break this code down and 
any advice would be really appreciated.

Thanks,
Robin


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to