You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Failed to execute 'add' on 'IDBObjectStore': The object store uses out-of-line keys and has no key generator and the key parameter was not provided.
#37
Closed
arnoldjair opened this issue
Jun 7, 2015
· 3 comments
app.js
var cursosStore = db.createObjectStore('Cursos',
{keypath: 'id', autoincrement: true}
);
Controller
$indexedDB.openStore('materias', function (store) {
var materia1 = {
id: 1,
nombre: "prueba",
descripcion: "prueba"
};
store.insert()
.then(
function (data) {
console.log(data);
},
function (error) {
console.log(error);
}
);
});
The text was updated successfully, but these errors were encountered: