Error following the guide

Hi guys,

I’ve been trying to run through the guide, but I’m stuck at page 5. The slider works perfectly, but when I add the controller with the tasks, I get the following error:

Error: [$injector:modulerr] Failed to instantiate module todo due to:
[$injector:nomod] Module 'todo' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.$injector/nomod?p0=todo

Code looks like this:

angular.module('todo', ['ionic'])
.controller('TodoCtrl', function($scope) { ....

And my HTML like this:

<body ng-app="todo" ng-controller="TodoCtrl">

However, if I change the code to this:

var app = angular.module('todo', ['ionic'])
app.controller('TodoCtrl', function($scope) { ....

It works. Is this a bug in the guide?

Never mind, the error was there because I used the blank starting template without removing everything. It’s fixed now, thanks anyway!