Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

TypeError: $window.sqlitePlugin is undefined #398

Open
@nekulin

Description

@nekulin

I'm doing a project on ionic and try to use sqllite

  1. cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git
  2. app.js
.run(function($ionicPlatform, $cordovaSQLite) {
  $ionicPlatform.ready(function() {
      var db = $cordovaSQLite.openDB({ name: "my.db" }); 

Error
TypeError: $window.sqlitePlugin is undefined

index.html
<script src="lib/ionic/js/ionic.bundle.js"></script>

<!-- cordova script (this will be a 404 during development) -->
  <script src="lib/ngCordova/dist/ng-cordova.js"></script>
  <script src="cordova.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions