Answer the question
In order to leave comments, you need to log in
How to break the code into modules?
Code on github .
Demo here
I tried to figure it out on my own, but there were difficulties (probably there is no such experience yet, it's hard to figure out what to endure). Help Wanted.
There are 4 files in the project (app.js, controllers.main.js and 2 services), respectively, you need to take them out of the controller in the module.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question