angularjs - Breezejs registerEntityTypeCtor for base type -
I am trying to register a custom constructor (add some properties) for the unit. I have done this:
var unit = function () {this.prop = "test"; }; Var store = manager.metadataStore; Store.registerEntityTypeCtor ("unit", entity); And it works fine when entity is the actual unit that I query. I have a problem when entity is the base type of the object that I query for example when I get the task from entity Property is prop on the job, but it has not started. Is not legacy supported?
I am using AngularJS and oData
Edit: I have managed everything I needed using the third parameter in the register. I initializ support but should it not work even without the init method?
The problem with the creator is that it is taking a dependency on things that are not present in the definition Unless you complete the query.
Since air creates properties as an observation, you can predict the properties that depend on you, as the knockout looks:
This.prop = ko Observable ("test");
Comments
Post a Comment