title: Sqlite in IONIC showing error TypeError: n.sqlitePlugin is undefined
body: <p>I am new to IONIC and wants to do some database operations . for this I have chosen <code>sqlite</code> as database. So following tutorial  <a href="http://nextflow.in.th/en/2015/easy-way-to-work-with-sqlite-database-in-ionic-framework/" rel="nofollow">Tutorial Link</a> I  wrote my <code>app.js</code> as </p>
  
  <pre><code>db = $cordovaSQLite.openDB("nextflow.db"); //line 29
  
  $cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS ta_sheets(id integer primary key AUTOINCREMENT, name varchar(255))");
  $cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS tas(id int primary key, name varchar(255), description TEXT, amount DECIMAL(10,2), date DATE )");
  </code></pre>
  
  <p>but somehow its not creating any database and console shows error <code>TypeError: n.sqlitePlugin is undefined</code></p>
  
  <pre><code>.openDB()            ng-cordova.min.js:9
  &lt;anonymous&gt;          app.js:29
  .$get&lt;/t.ready/&lt;()   ionic.bundle.min.js:384
  r()                  ionic.bundle.min.js:22
  o()                  ionic.bundle.min.js:22
  </code></pre>
  
  <p>Whats wrong  ? I am totally lost. Any help/hint is highly appreciated. </p>