title: How to use sqlite in angularjs application
body: <p>I have to used below code for using sqlite inside angulajs.but i got error like,
  Module name "sqlite3" has not been loaded yet for context: _. Use require([])
  please help me</p>
  
  <pre><code> var sqlite3 = require('sqlite3').verbose();
  var db = new sqlite3.Database('mydb.sqlite');
  db.serialize(function() {
      console.log("A");
      db.run("CREATE TABLE if not exists lorem (info TEXT)");
      var stmt = db.prepare("INSERT INTO lorem VALUES (?)");
      for (var i = 0; i &lt; 10; i++) {
          stmt.run("Ipsum " + i);
      }
      stmt.finalize();
      db.each("SELECT rowid AS id, info FROM lorem", function(err, row) {
          console.log(row.id + ": " + row.info);
      });
  });
  db.close();
  </code></pre>