Angular 4 / WebSql : can not find name 'openDatabase'?
up vote
0
down vote
favorite
I'm using websql in angular 4 project , but Typescript can't find some of the types:
this.db = openDatabase('tes', '1.0', 'test', 2 * 1024 * 1024);
But some how is accepting the transaction :
this.db.transaction(function (tx) {
tx.executeSql(query);
tx.executeSql(qr);
})
I'm always getting :
error TS2304: Cannot find name 'openDatabase'
angular typescript web-sql
add a comment |
up vote
0
down vote
favorite
I'm using websql in angular 4 project , but Typescript can't find some of the types:
this.db = openDatabase('tes', '1.0', 'test', 2 * 1024 * 1024);
But some how is accepting the transaction :
this.db.transaction(function (tx) {
tx.executeSql(query);
tx.executeSql(qr);
})
I'm always getting :
error TS2304: Cannot find name 'openDatabase'
angular typescript web-sql
what is OpenDatabase?
– Sajeetharan
Nov 12 at 16:28
it's the name of the method, in js it is by default exsist , i tried to follow this tuto in websql : thepolyglotdeveloper.com/2015/02/…
– azza
Nov 12 at 16:30
I found the solution in this and it worked: stackoverflow.com/questions/44385151/angular-2-websql-typings
– azza
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using websql in angular 4 project , but Typescript can't find some of the types:
this.db = openDatabase('tes', '1.0', 'test', 2 * 1024 * 1024);
But some how is accepting the transaction :
this.db.transaction(function (tx) {
tx.executeSql(query);
tx.executeSql(qr);
})
I'm always getting :
error TS2304: Cannot find name 'openDatabase'
angular typescript web-sql
I'm using websql in angular 4 project , but Typescript can't find some of the types:
this.db = openDatabase('tes', '1.0', 'test', 2 * 1024 * 1024);
But some how is accepting the transaction :
this.db.transaction(function (tx) {
tx.executeSql(query);
tx.executeSql(qr);
})
I'm always getting :
error TS2304: Cannot find name 'openDatabase'
angular typescript web-sql
angular typescript web-sql
edited Nov 12 at 16:20
Daniel Larsson
473416
473416
asked Nov 12 at 16:16
azza
195
195
what is OpenDatabase?
– Sajeetharan
Nov 12 at 16:28
it's the name of the method, in js it is by default exsist , i tried to follow this tuto in websql : thepolyglotdeveloper.com/2015/02/…
– azza
Nov 12 at 16:30
I found the solution in this and it worked: stackoverflow.com/questions/44385151/angular-2-websql-typings
– azza
2 days ago
add a comment |
what is OpenDatabase?
– Sajeetharan
Nov 12 at 16:28
it's the name of the method, in js it is by default exsist , i tried to follow this tuto in websql : thepolyglotdeveloper.com/2015/02/…
– azza
Nov 12 at 16:30
I found the solution in this and it worked: stackoverflow.com/questions/44385151/angular-2-websql-typings
– azza
2 days ago
what is OpenDatabase?
– Sajeetharan
Nov 12 at 16:28
what is OpenDatabase?
– Sajeetharan
Nov 12 at 16:28
it's the name of the method, in js it is by default exsist , i tried to follow this tuto in websql : thepolyglotdeveloper.com/2015/02/…
– azza
Nov 12 at 16:30
it's the name of the method, in js it is by default exsist , i tried to follow this tuto in websql : thepolyglotdeveloper.com/2015/02/…
– azza
Nov 12 at 16:30
I found the solution in this and it worked: stackoverflow.com/questions/44385151/angular-2-websql-typings
– azza
2 days ago
I found the solution in this and it worked: stackoverflow.com/questions/44385151/angular-2-websql-typings
– azza
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266118%2fangular-4-websql-can-not-find-name-opendatabase%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what is OpenDatabase?
– Sajeetharan
Nov 12 at 16:28
it's the name of the method, in js it is by default exsist , i tried to follow this tuto in websql : thepolyglotdeveloper.com/2015/02/…
– azza
Nov 12 at 16:30
I found the solution in this and it worked: stackoverflow.com/questions/44385151/angular-2-websql-typings
– azza
2 days ago