Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Sum of returned "fields" in ng-repeat showing in HTML page

I have an angular-js controller returning json data from the database. I bind the returned data to the $scope.details var in the success function. In the HTML I use the NG-REPEAT to show all the ...
Jasper's user avatar
  • 135
0 votes
1 answer
54 views

Unable to fetch angular controller's data into HTML

I am using Angular 1.6. I am trying to fetch x and y positions for an SVG element from a component controller. this.painterModel = []; var imageRef = {}; imageRef.path='assets/images/sample.png'; ...
Kalyana Vasanth's user avatar
0 votes
2 answers
165 views

How to set value from controller to Input Box using "this" operator

I am newbie to angular js. I got the data successfully from php but calling it from the controller, it's not working? I don't get any errors, my syntax is just wrong. For eg: Suppose, A in entered in ...
sam007's user avatar
  • 13
0 votes
2 answers
134 views

Why isn't my JSON data showing up in AngularJS?

I've hit a wall at this point. My json file is connected (I verified in the Chrome console), but it's not showing up on my services.html page. What am I doing wrong? In troubleshooting my issue, I put ...
hawkinside_out's user avatar
0 votes
1 answer
147 views

Angular Directive template to array in a controller function

Here is the directive directives.directive("unitDirective", function(){ return { templateUrl: "../html/directives/unitDir.html" } }); Here is the template <div ng-repeat="unit in addUnit(...
Anjil Dhamala's user avatar
0 votes
1 answer
786 views

How to repeat the Table Header Details for every 2 records

<!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <body> <div ng-app="myApp" ng-controller="...
vignesh selvarathinam's user avatar
-2 votes
1 answer
641 views

How to use Ng-repeat within controller not in view

According to the below json. If I call this scope in controller, I am getting output : [{"code":"USD","value":"0.00670000"}]. I want to get only value but within controller I want to do. Does anyone ...
Abel Anojan Sithamparappillai's user avatar
1 vote
0 answers
236 views

Controller multiplication from ng-repeat with AngularJS

In my document I have a table cell labeled P/L which is calculated by: P/L = Sell price * Sell Quantity – Buy price * Buy Quantity You can see I have started by using some multiplication on my ...
Blynn's user avatar
  • 1,421
1 vote
2 answers
325 views

Angular, how to assign controller to markup before ng-repeat

Can anyone tell me if is possible to assign a controller from a directive to the markup before ng-repeat does his thing? The code below is just an example of what i want to do <body ng-app="App"&...
Jose Rocha's user avatar
  • 1,115
0 votes
1 answer
272 views

Filter/Group by Data in angular

we have data returned from rest service in below JSON format and I want to group data by ActivityStartDate and then show in format. I can iterate through and create group by ActivityStartDate but this ...
user avatar
-2 votes
2 answers
50 views

json data in loop of angular view

How to call this json data in loop of angular view(ng-repeat)... Here is my json { "customers": [ { "id": 1, "firstName": "LoadTestName1", ...
user4223185's user avatar
1 vote
3 answers
993 views

Displaying json data in an Angular App

I am trying to parse data from a json file and display it in my angular application, but for some odd reason the view wouldn't show the data(intepret my expressions), I thought it might be my ...
CodeArt's user avatar
  • 15
0 votes
1 answer
613 views

Displaying data from a json file in Angular

This questions has been answered on a different post. See here: Displaying json data in an Angular App
CodeArt's user avatar
  • 15