5
donuts
5y

I want to create a static JS class/file to hold shared functions but I can't seem to make it usable in other JS files.

import DbCommons from './commons' //Same folder

getCategories() {
return this.db.transaction((tx) => {
tx.executeSql('SELECT * FROM ' + DbCommons.CategoryTable, []) //Says not found

I forget how do I make things visible outisde of the actualy JS file

Comments
Add Comment