DevExpress / DevExtreme-Data-BreezeJS

[OBSOLETE] See https://js.devexpress.com/Documentation/Guide/Data_Layer/Data_Layer/
MIT License
1 stars 2 forks source link

Update to DevExtreme 16.1.5 #3

Closed GoshaFighten closed 8 years ago

stephanlotter commented 8 years ago

I use DevExtreme and Breeze in an AngularJS app. It seems that in this case Breeze uses the Angular $q. $q does not implement the fail method, only catch.

stephanlotter commented 8 years ago

Your _isNumber = DX.require("/utils/utils.common").isNumber statement fails in my environment. I replaced it with lodash's .isNumber.

stephanlotter commented 8 years ago

This library is not compatible with Breeze+Angular.

When using BreezeJS and Angular the promises returned from calls to Breeze do not implement the fail method, but rather the catch method.

In order for me to get this library to work in my project I had to replace all .fail calls with .catch calls in cases where entityManager calls were made.

In my Angular app I include the following breeze scripts (in order): breeze.min.js breeze.bridge.angular.js breeze.directives.js

Read more here: http://breeze.github.io/doc-js/breeze-angular.html