Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@arnoldjair
Copy link

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);
}
);
});

@bramski
Copy link
Owner

bramski commented Jun 7, 2015

tommy_kidding

@bramski bramski closed this as completed Jun 7, 2015
@bramski
Copy link
Owner

bramski commented Jun 7, 2015

Read the docs. Debug your issue. Please don't waste my time. Use github markup, write code I can reproduce or at least read.

@arnoldjair
Copy link
Author

That is what i'm doing. But i can't find the problem. Sorry-.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants