Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
238 views

AngularJS - Directive - onClick function calling $http(POST) - $http is undefined?

I have an AngularJS directive that calls data from an api using $http (ng.IHttpService) with no problems. I have the 'click' event bound to a function and want to call a POST request on the same api ...
Alastair Gordon's user avatar
1 vote
3 answers
2k views

In AngularJS, my directive can't access $scope properties of the parent controler defined in $http

I'm creating a custom directive that inherits the scope of the parent controller. For the most part, I can access the directive's "scope" object that I set in the controller's "$scope" except for ...
Jeremy Kayes's user avatar
1 vote
1 answer
575 views

Custom infinite scrolling trigger many times

I am new to angular was used to work with jquery. I set a directive which listen scrolling to trigger an http.get request when the user is almost on the bottom of the document. Everything works fine ...
decarte's user avatar
  • 430
1 vote
1 answer
870 views

directive with inline tpl containing ng-include

I have a directive with inline template containing a ng-include directive element. When karma testing my directive and logging the result of compiled element . the tesult contains a ng comment ...
talx's user avatar
  • 109
0 votes
1 answer
41 views

Is $http.jsonp is blocking call.?

As mentioned in the title I am using $http.jsonp in my application for client to server communication, when my application bootstraps it sends the request to server using $http.jsonp I am able to see ...
sreeramu's user avatar
  • 1,223
0 votes
1 answer
129 views

Working with APIs in AngularJS

I'm trying to create a layout that displays 'channel' data for multiple 'users'. The API I'm using requires one to query first to get a list of username and then another query for each user to get the ...
user1960364's user avatar
  • 2,019
1 vote
3 answers
472 views

Angular http json request issue

Hello I have a simple question but I'm running into problems. I edited some code that I found on line. I'm trying to utilize an Angular http service to retrieve JSON data but it doesn't seem to be ...
Spanky's user avatar
  • 709
3 votes
2 answers
5k views

Angular UI Bootstrap modal dialog in $http interceptor hangs the browser

I'm trying to implement lazy authorization which will bring in the login dialog only when user triggers call to API requiring authentication. I'm using bootstrap ui.bootstrap.modal (and ui.bootstrap....
2ooom's user avatar
  • 1,760
1 vote
0 answers
381 views

Manipulate DOM after Angular has retrieved content via $http and added it to a partial view template

I looked at various similar questions such as this one, this one, this one, this one, and this one that failed to provide a solution to my problem before hitting on a solution myself. However, it ...
jgolieb's user avatar
  • 41