Refactor and extend
A previous series of posts described how I extended the ionc sample todo app to a more functioning todo application. This series further expands on the todo app by refactoring into more manageable chunks, and adding some more features.
refactor stories
I was inspired by this example to refactor to a mulitple file project following anglular js typical approaches. This example chose to separate the javascript out of one big app.js into multiple js files: use one services.js for services, one controllers.js for all controllers and a much smaller app.js just to initialize the router. The app.js shows the use of the anglular router technology to route to the first page which will show the list of tasks. For this example this is the only page. The project also used one file per template and I will do the same.
- as a developer I would like to use multiple files for javascript and templates
- as a developer I wish to use the angluar router so I can add additional routes for more advanced interactions
extend stories
- as a user I wish to rename a project
- as a user I wish to remove a project and its tasks
- as a user I wish to show the completed tasks with a strikethrough
- as a user I wish to see tasks in order of most recently added
- as a user I wish to hide the tasks that are done
the code for this can be found on my github page