Slide 37
Slide 37 text
todo.js
'use6strict';6
!
angular.module('todoApp',6[])6
66.controller('TodoController',6function($scope)6{6
6666$scope.todos6=6[6
666666{6text:6'Speak6at6DevFest6NE',6done:6false6},6
666666{6text:6'Learn6AngularJS',6done:6true6}6
6666];6
6666$scope.addTodo6=6function()6{6
666666var6todo6=6{6text:6$scope.todoText,6done:6false6};6
666666$scope.todos.push(todo);6
6666};6
66});