How can i integrate the backendless function in the angularjs factory

i am developing ionic application, which need to use ui routing.
i want to ask that how can i apply the backendless js sdk in angularjs service/factory.

Hi, Keen.
Please, try to do next:

  1. Install Backendless SDK for javascript in folder ./www/lib/ of your project (if you don’t know how to do this let us know);
  2. Include Backendless SDK js file in your index.html after ionic.js:
...
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="lib/backendless/libs/backendless.min.js"></script>
...
  1. Use Backendless in your Angular service for example:
angular.module('MyModule', []).service('myService', function() {
 this.helpfulMethod = function(id, key, version) {
 Backedless.initApp(id, key, version);
 }
});

I hope it’ll help you.
Please, let me know about you progress.

Ilya

Thank you very much Ilya! Its work perfectly !

I am so thankful for your help!