petruisfan / ionic-ajax-interceptor

Ajax interceptor for $http, designed for ionic
7 stars 5 forks source link

AjaxService is not defined #2

Open sahassakhare opened 8 years ago

sahassakhare commented 8 years ago

Hi, In my ionic angulajs project, under factory I am have replacde $http.get with AjaxService.http.get(url).success(function (data) {}. I am getting error: "AjaxService is not defined". I have also passed AjaxInterceptor to the factory as, .factory("someSrv", ["$rootScope", "$http", function ($rootScope, $http,AjaxInterceptor) {} what am i supposed to do to resolve this? please reply

petruisfan commented 8 years ago

Try this:

.factory("someSrv", ["$rootScope", "$http", "AjaxInterceptor", function ($rootScope, $http, AjaxInterceptor) {}

sahassakhare commented 8 years ago

Thanks petruisfan! I am getting the small modal but it does not contain the spinner. I have defined the spinner on index file

petruisfan commented 8 years ago

What is your version of ionic? Can you post a screenshot with the modal?

sahassakhare commented 8 years ago

Hi petruisfan, glad for your quick responses. I am using IonicVS2015 for cordova, version 1.1.0. image

petruisfan commented 8 years ago

It seems to me like a ionic / ionicons issue. Could you check if ionicons are loaded? Right click the blank modal, inspect css, and verify if all the classes are loaded. If not, your ionic installation might need updating.

petruisfan commented 8 years ago

Any update on this? :)

sahassakhare commented 8 years ago

Hi petruisfan, following is the code for spinner in my index.html

```


I am new to ionic devlopment, so  not sure whats wrong with it. 
sahassakhare commented 8 years ago

`

    <div class="spinnerBackground"></div>
</div>`