Most likely you have already heard of AngularJS, or already joined the craze. When I decided to give a course on AngularJS, we decided it would be wise to start with the basics, and as a result I set up a course to develop a single-page application (SPA) without using any frameworks. This course provides the basics so you can understand how AngularJS works. To reach this goal I introduced the concept of Controllers, Models and Services.
The challenge here is how to structure your code, and I wanted to share my thoughts. Especially since I could not find a coherent sample thus far.