examples/todos/public/scripts/app.js
function showTodos() {
    db.allDocs({
      include_docs: true,
      descending: true
    }, function(err, doc) {
      redrawTodosUI(doc.rows);
    });
  }
function showTodos() {
    db.allDocs({
      include_docs: true,
      descending: true
    }, function(err, doc) {
      redrawTodosUI(doc.rows);
    });
  }
function showTodos ( ) { db . allDocs ( { include_docs : true , descending : true } , function ( err , doc ) { redrawTodosUI ( doc . rows ) ; } ) ; }
Show the current list of todos by reading them from the database
Show the current list of todos by reading them from the database