I have the following problem with a simple MVC4 + ko + breeze webapp:
the breeze entities returned by a query are simple javascript objects, without ko observables.
I inspected the todo sample (which correctly returnes ko observables) and I didn’t find the place where breeze is configured to work with ko (and generate observables).
I tried adding the following lines, but nothing changed:
var core = breeze.core;
var entityModel = breeze.entityModel;
core.config.setProperties({
trackingImplementation: entityModel.entityTracking_ko,
remoteAccessImplementation: entityModel.remoteAccess_webApi
});
Thanks in advance for Your kind help
gotcha!
the problem was in a couple of missing attributes in the WebApi controller:
After adding [JsonFormatter, ODataActionFilter] the returned entities had the expected ko observables!