I'm writing cordova + angular + breeze app where text info from element should be stored in the cash of browser that wraps the app. Accordind to the docs to do so, first I need to create new entity type in breeze. I do the following:
var entityManager = new breeze.EntityManager("api/Northwind");
var newType = new breeze.EntityType({
shortName: "input"
});
Next I'm trying to create new entity of this type:
var newEntity = newType.createEntity();
This fails with message: "TypeError: Cannot read property '_ctorRegistry' of undefined"
Is seems to be very basic functionality of breeze but I can't get it work for 2 days already. Could anyone help me with that?
MetadataStore... almost certainly the one that belongs to the manager (manager.metadataStore) and (2) the new type should have some properties ... at least a key property. Now Breeze will think you can persist this to the server so you better guard against that. I find myself wondering "Why is Qvatra creating a pretend entity that can't be persisted?". You may have a good reason but it seems a dubious move on it face.