Typo in Docs/Ionic Book/Chapter 5 causing buggy code


Just started using Ionic and loving it so far! Just wanted to note that there’s a typo in the “Chapter 5: Building out your app” that was messing up my code from showing correctly:

Then, we need to define this controller in our app.js file, and we can add some testing tasks in:

angular.module('todo', ['ionic'])

.controller('TodoCtrl', function($scope) {
  $scope.tasks = [
    { title: 'Collect coins' },
    { title: 'Eat mushrooms' },
    { title: 'Get high enough to grab the flag' },
    { title: 'Find the Princess' }

The semi-colon after the ending scope braces shouldn’t be there. Could someone please remove this?