Rewriting the simple to-do list app
In Chapter 2, Getting Ready for PhoneGap, we wrote a rather simplistic version of the to-do list app. As you may have already noticed, many things were missing; there was no backend server to save your to-do lists, and there was no code organization, as everything was just written within a folder and with minimal breakup of the code.
In this section, we are going to do just that; rewrite the code so that there are some levels of code organization.
Let's review the code organization first. The app we built in Chapter 1, Introduction to AngularJS, looks like the following:
todo/ todo.js index.html
We are going to break up the code so that the code organization looks as follows:
project/ css/ js/ controllers/ todo.js services/ todo.js app.js partials/ detail.html list.html index.html
So what is going to happen is that project.js
from Chapter 2, Getting Ready for PhoneGap, will be broken...