All Questions
Tagged with angularjs-http angularjs-scope
35 questions
0
votes
1
answer
50
views
AngularJS call callback function
I want to call a callback function but i can't get the data because my call is wrong.
I tried:
//function with callback
filterList: function(type, cb) {
if (type == 'all') {
var resource = ...
1
vote
2
answers
806
views
Angularjs $rootScope:infdig Error calling http in view method
I'm trying to get some information from a server in an html page of an AngularJS app. The method itself is working fine, however, when I call the function in my html file with $scope. I get a $...
0
votes
0
answers
576
views
Angularjs: view not updating when variable changes in success method of promise
I am calling a backend API using a factory method in angular. The factory method
returns $http directly.
In my controller, I am calling the factory method and fetching the data. The factory returned ...
0
votes
3
answers
417
views
How to all data at once and apply to controllers in angularjs
i want to get all data at once through AJAX($http) request and apply to all controllers
i picked this code from google it shows the i have to make requests for each controller were i can get data in ...
0
votes
2
answers
284
views
how to add response data to $scope object to use in ng-repeat
Hello all i was trying to get response from $http.get method and append it to $scope object but it was stating undefined. After some research and referencing found the way to assign the data to object....
0
votes
1
answer
68
views
How to bind data to scope object that i can use it in ng-repeat
I am getting a response from the server and due to async behavior I instantiated scope object first before the call and used it in method. I am getting the response in self-object but unable to bind ...
0
votes
1
answer
831
views
AngularJS form.validation is not a Function
AddClass.cshtml File has the form and ng-validate uses the validation option. When I click the Add Class button in cshtml file without entering any value in Textboxes, it should show error messages ...
2
votes
1
answer
7k
views
How to do XMLHttpRequest (AJAX) with AngularJS
I'm trying to use AngularJS within an POST request, but I cannot use $scope within the event.
Thats my code (for demonstration purpose I just add status within the Angular construct):
myApp....
1
vote
2
answers
1k
views
Undefined $http data when resolved with `.then` method
I used the console log which returned the array of data fetched from the server, but when I call the scope on the html I get an undefined error on the console.
app.service('blogpostservice', ['$http',...
7
votes
2
answers
214
views
CellFilter is getting called before $http Response in UI-Grid
I am using ui-grid to bind data from Role Table which contains Department Id as PrimaryKey. I am calling Web Api to get all the roles in the table and show in ui-grid.
Department Table
Role Table
My ...
0
votes
1
answer
71
views
Data Array Always Process to String not Array With Angular.fromJson
I have a problem, I did set field form to array. Example : Field dfp_interest in response is []. So, i must set my data to array right ? I did and success in console.log. Result like --> ["5","6"] but ...
1
vote
1
answer
285
views
angularjs country code look up from jsonfile via $http request
I am trying to look up country codes from a json file to get the full country names:
$scope.fullname = function (option) {
$http.get('files/names.json').success(function (data) {
for ...
0
votes
4
answers
40
views
Persisting Scope beyond get request in Angular
I have the following code:
$http({
method: 'GET',
url: 'http://localhost:8080/getStuff'
}).then(function successCallback(response) {
$scope.stuffData= response.data.length;
}, ...
0
votes
1
answer
38
views
View No Longer Updating Immediately in Efforts to Clean Up Scope Soup
I've fallen victim to self-imposed $scope soup and am taking steps to correct this. I'm adopting some of the methods written about by Josh Carroll in his article here:
http://www.technofattie.com/2014/...
4
votes
1
answer
68
views
Encapsulating model in its own class for Angularjs app
I have 2 views. One is to list student in a table and the other is when you click on a student, it shows the details of the student. I have brought the student to it's own class in a separate file ...