Replace todoItems with Todo $resource.