angularjs - BreezeJS - binding to all entities -


my app based on notifications server, using signalr getting entities , adding them using

manager.createentity(entitytype, entity, breeze.entitystate.unchanged); 

the ui based on angular grid bind entities of type, how ever when adding new entity grid isn't being updated, assumption bind cache , not other collection. same issue when removing entity

as @pwkad pointed out in comments above, getentities function builds array each time called, returning entities cache match parameters. resulting array won't updated when cache changes.

in case, should store array that's returned getentities, add each new entity after that:

scope.gridlist = manager.getentities(entitytype); // ... later: scope.gridlist.push(manager.createentity(entitytype, entity, breeze.entitystate.unchanged)); 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -