when using this order :
<script src="lib/angular/angular.js"></script>
<script src="lib/onsen/js/onsenui.js"></script>
<script src="http://include.jaydata.org/datajs-1.0.3.js"></script>
<script src="http://include.jaydata.org/jaydata.js"></script>
<script src="http://include.jaydata.org/jaydatamodules/angular.js"></script>
I get this error
TypeError: Class.extend is not a function
at Object.<anonymous> (onsenui.js:13049)
at Object.invoke (angular.js:4535)
at Object.enforcedReturnValue [as $get] (angular.js:4387)
at Object.invoke (angular.js:4535)
at angular.js:4352
at getService (angular.js:4494)
at Object.invoke (angular.js:4526)
at Object.enforcedReturnValue [as $get] (angular.js:4387)
at Object.invoke (angular.js:4535)
at angular.js:4352
And when using this order:
<script src="lib/angular/angular.js"></script>
<script src="http://include.jaydata.org/datajs-1.0.3.js"></script>
<script src="http://include.jaydata.org/jaydata.js"></script>
<script src="http://include.jaydata.org/jaydatamodules/angular.js"></script>
<script src="lib/onsen/js/onsenui.js"></script>
note: edited to correct the order
jaydata.js:3342 Uncaught TypeError: Cannot read property 'apply' of undefined
any help is appreciated!
Finally I found a solution based on Ilia Yatchev answer so thanks to him.
first I used the downloaded jaydata files instead of the online files since it contains the code change that Ilia Yatchev mentionned on his answer
note : the order isn't a problem now
then in the code we save a reference of the created entity:
and we save a reference of the created context:
then we can safely work these references:
if I don't save reference to the entity and the context I get this error