Linked Questions

2 votes
1 answer
1k views

I am trying to learn angular-js so I created a mini app where the user adds elements in an array and the values of the array are displayed above. The app works fine but crashes when a value that ...
JmRag's user avatar
  • 1,469
0 votes
2 answers
800 views

How to allow duplicate in ng-repeat with track by and update ng-repeat list from controller ? By using track by $index i am not able to update scope variable, but i want to allow duplicate object in ...
Rohit's user avatar
  • 1
2 votes
1 answer
415 views

I am able to add the items (through html input) to un-ordered list dynamically through ng-click event handling. This happens whenever i change the input textbox value. But if i click the add button ...
Prashant M. Jadav's user avatar
-1 votes
2 answers
300 views

I have this html that binds the $scope.comments array to an unordered list; <div ng-app="" ng-controller="commentController"> <ul> <li ng-repeat="c in comments"> ...
srayner's user avatar
  • 1,839
-1 votes
2 answers
431 views

Dear Experts : I am trying to get data from a web api using Angularjs But I got an error. I have tested the api through google chrome and it returns JSON correctly First app : var contractT = ...
hassanzi's user avatar
  • 211
1 vote
1 answer
252 views

I am trying to display my array in my app. I have something like JS $scope.array1 = [' ',' ',1,2,3,4,5]; $scope.array2 = [6,7,8,9,10,' ',' ']; $scope.array3 = [12,13,14,15,16,17]; html <div ng-...
BonJon's user avatar
  • 799
0 votes
1 answer
267 views

I have two functions fetch_orders and search_order in my scope. The fetch_order function works well but when i click the search button, the search_order function executes and displays error saying ...
Zohaib's user avatar
  • 111
1 vote
1 answer
92 views

The following Angular code displays four dancing hamsters: <img src="images/dancingHamster.gif" ng-repeat="i in [1,2,3,4]"> whereas this code displays nothing: <img src="images/...
Qaz's user avatar
  • 1,576
1 vote
0 answers
54 views

I am getting a duplicate keys error This object gives me the error: $scope.workoutData = { "2015-02-01":[["16:22:45","2","7","270","1"]], "2015-06-11":[["18:34:10","2","8","225","1"]], "...
Nate May's user avatar
  • 4,071
0 votes
0 answers
36 views

Hello StackOverflow people ! TLDR; Fixed, my array was containing duped elements. On my way to clean this array ! Thanks @Igor for the light ! I'm currently working on a relic of the past : Angular JS ...
Sornin's user avatar
  • 105
21 votes
6 answers
64k views

I've got the following json data returned from a service request: { "entries": [{ "id": 2081, "name": "BM", "niceName": "bodmas" }] }, { "id": 8029, ...
skip's user avatar
  • 12.8k
27 votes
2 answers
42k views

repeat directive outputing wine records from an api. I have a factory function to serve up the wine API which is then accessed in my controller app.factory("Wine", function ($http){ var factory ...
HGB's user avatar
  • 2,203
14 votes
2 answers
14k views

I recently got the console error ` Error: [ngRepeat:dupes] duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys... — AngularJS Error Reference - ngRepeat:dupes ...
Kyle's user avatar
  • 6,527
3 votes
3 answers
57k views

I am very new to angular.js and am having some trouble with a seemingly simple task. I need to get the json below from a json file on a website, then place the keys (english, spanish, etc.) inside ...
roscioli's user avatar
  • 1,230
6 votes
2 answers
13k views

I'm working on an AngularJS app that builds a spreadsheet out of a 2D array built by the ng-repeat function. I'm currently writing a function that will change the initial values of the array when the ...
user2465164's user avatar

15 30 50 per page