0
votes
0answers
22 views

how to use ng-if for nested array of objects

doc.html <tr data-ng-repeat="childCondition in model.rule_key[$index]"> <th> {{ childCondition.KEY_NAME }} </th> <td> <input type="text" class="form-control" ng-...
0
votes
2answers
37 views

How can I iterate over multiple maps (key,value) using ng-repeat in AngularJS

In my controller, I have data like this: "type": [ { "aMap": {"5.0": 0}, "bMap": {"10.0": 0}, "cMap": {"15.0": 0}, "dMap": {"20.0": 0}, "...
0
votes
1answer
47 views

How to Save ng-repeat $index to DB ( rownumber: 1.1 ,1.2,1.3) using angularjs

I am working on index page of book functionality i.e : 1.1 1.1.1 1.2 1.2.1 where 1.1 & 1.2 is parent ng-repeat & 1.1.1 & 1.1.2 is child ng-reapet now i want to ...
0
votes
0answers
21 views

angular.js limitTo and groupBy in ng-repeat not working

Hi have a custom filter in ng repeat, which just wont work. Am i doing something worong, or is there some usage limitations of ng-repeat filters which am missing? Here is the code: <div ng-repeat=...
1
vote
3answers
50 views

AngularJs ng-repeat custom structure

I have a dataset like this $scope.dataset= [ {"Name":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"}, {"Name":"Ana Trujillo","City":"México D.F.","Country":"Mexico"}, {"Name"...
1
vote
2answers
30 views

How to set column value by subtracting values from ng-repeat value

Below is snippset, I want to set the value of balance column based on the entered Amt in Entered Amt column. I tried this but in my scenarion, same vallue is setting for all balance column though i ...
0
votes
2answers
28 views

Merge and display multiple rows in a single row using ng-repeat

I need to merge and display in a single row for particular data which has same id. I'm using ng-repeat for displaying data. Sample JSON: $scope.sampleTest = [{"city": "Chennai", "name":"Sample"}, ...
0
votes
0answers
16 views

Orderby Date Time collection not working

Im pulling a collection of records where i wich to filter by DateTime, but for some reason the records is not working will, i think is because angularjs doesnt filter by the time, or im not doing ...
0
votes
1answer
26 views

Angular array not splicing correctly (pure JS)

Can someone tell me what I'm doing wrong? I have JSON data that I'm converting to an array for an ng-repeat. Before I iterate through the array, I am comparing the event dates to today's date and ...
0
votes
0answers
9 views

Not able to get data-bound data during the directive initialization when its wrapped in a ng-repeat

I've been creating a modularized start page (In Angular). I've created a module-directive that can handle simple data and displaying them as a list. Originally, my plan was to create new directives ...
0
votes
0answers
15 views

How to load so many iframes in angular.js

I have a blog page developed in angular.js and node.js, each blog have some youtube or soundcloud embed which i need to add on blog listing. I used a web service to get around 10 blogs at a time, but ...
0
votes
0answers
11 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="...
0
votes
1answer
65 views

CSS: Tooltip shown with distanse from parent on list scroll

I have a table inside li tag, and I want to show description on :hover inside td. For some reason when scrolling the list, the description content start to appear with distance from its parent. I ...
0
votes
3answers
66 views

checking the condition in ng-repeat

I am creating app in ionic /angularjs. The controller fetches the data in JSON format from the URL and displays unique images in div elements. I want to allow these images to be clicked and then ...
0
votes
0answers
25 views

Catch duplicates and ignore them inside ng-repeat's track by without a filter (AngularJS)

I'm having some issues using ng-repeat with track by because sometimes duplicate data comes in (same user) because the user was pushed down in the date ordered list (API side) after a newer entry has ...
0
votes
0answers
32 views

Directive for dynamically adding JavaScript files

Is it possible to use ng-repeat to dynamically add script files to my html file? I have a directive like below: angular.module("app").directive("scriptLoader", function($compile) { return { ...
1
vote
2answers
34 views

Can i append a div which includes ng-repeat

i am trying to append a div to another div. But this div which i will append has a ng-repeat (AngularJS). my html code looks like this: <div id="content"></div> and this is my jquery/...
0
votes
2answers
28 views

Filter angular js data source inside parent and child nodes

I have created a tree view in angular js using ng-repeat. I have also added a filter to filter my data source. I am able to filter the parent nodes and the resource nodes as what I expected, but my ...
0
votes
0answers
72 views

$compile directive not hiding elements in ng-repeat

After upgrading from Angular 1.3.2 to 1.5.11 it appears my custom restrict directive is no longer working as expected. The directive is responsible for hiding elements through comparing a user's roles ...
-1
votes
0answers
16 views

How to inline edit table in angular material?

I need to inline edit a table i.e., to edit a table row in between. I have a table populated with data and each row has an button named Edit at the end. When I click on this button a dialog box opens ...
0
votes
2answers
54 views

Angular Nested array filtering whole object

I have the following code on the controller.js and gallery.html .controller ('VideoGalleryController', ['$scope', 'videogalleryFactory', function($scope, videogalleryFactory){ //...
0
votes
1answer
30 views

Using function with ng-repeat causing infinite digest loop

I have the following piece of code. https://plnkr.co/edit/Tt7sWW06GG08tdJu72Fg?p=preview. Please expand the window fully to see the whole view. I have categories and sub-categories to display in a ...
0
votes
0answers
29 views

Pass an argument to a property function of a custom directive

I have a piece of code (plnkr), which stringifies a list of handsontables. Changing any cell value in a table will systematically change its corresponding string. One thing I realise is that, after ...
1
vote
2answers
57 views

Angularjs - How to show by default first tab of accordion in ng-repeat

var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.records = [ { "Name" : "Alfreds Futterkiste", "Country" : "Germany" }, { ...
0
votes
1answer
28 views

Angularjs - How to generate tables column dynamically onclick of ng-repeat element

I'm getting such type of response from backend. [ { "id": "1", "name": "Roshan", "av": "1000", "compname": [ { "id": "43", "cname": "TCS", "...
0
votes
1answer
41 views

Executing function in ng-repeat give error

I have to run a function during a ng-repeat like this <tr ng-repeat="x in listaService track by $index"> <td>{{x.label}}</td> <td><span ng-show="showNoRole(x.label)" ...
0
votes
1answer
16 views

semantic UI dropdown not working with ng-repeat angularJS

Please see the plunker: https://plnkr.co/edit/YeOJjf6AZyJ7hAfpFfsK?p=preview In the Plunker, you could see that the color dropdown is working fine but the shape dropdown is not. I am guessing this is ...
0
votes
4answers
39 views

ng-repeat with function to create new objects and avoid [$rootScope:infdig]

plunker preview I have the main array with information about users. Each item (user) has 'data' array: { name: 'Linda', data: [ { value: 3 }, { value: 6 } ] } I ...
0
votes
1answer
20 views

ngTable is not working for Data Table plugin

I am trying create a datatable plugin which reflect same as jQuery datatable plugin with single search box. My Data table plugin code using ngTable is not displaying any data and there there is no ...
0
votes
5answers
59 views

Angularjs - How to work with nested ng-repeat

I have following code which is showing data of two person namely Roshan and Ashwin and there is nested array which shows data of there friend name , constant, asalary, msalary etc. allData = [{ ...
2
votes
1answer
41 views

how can i make this filter with ng-repeat

i coding a social media aplication. I have a problem with profile menu in profile page. I want it to be visible menu items depending on certain circumstancesces. I did put menu items in a array like ...
0
votes
0answers
26 views

How fix expanding “table” by angular-vs-repeat while scrolling

Greetings for everyone! I have tree table with expandable rows to display tree data. Some of the data items can have very much child items(~3000) and it results to performance issue while using of ...
0
votes
1answer
26 views

Angular Js - Why the call for the first <li> is not going?

I have been stuck for more than an hour and I could not figure it out what is the issue. I have a simple code in which I am using ng-repeat. <ul class="nav nav-tabs"> <li class="width-...
-1
votes
1answer
29 views

random orderBy in ng-repeat returns [$rootScope:infdig] error

I have a large array of objects which I am printing with ng-repeat which keeps on shuffling infinitely in dom, any quick solution will be appreciated. Below is the HMTL: ng-repeat="_video in ...
1
vote
0answers
44 views

Angular dynamic directive attribute not evaluating when used with ng-repeat

I'm trying to pass in a string that comes from a list in my controller which contains the template name that should go get the template dynamically (i.e. template="{{item.template}}") I've attempted ...
2
votes
2answers
54 views

ng-repeat $index interpolation inside ng-if

In my app I have nested forms, some with fixed names and some with generated names using ng-repeat index: <form name="rootForm"> <div ng-repeat="child in childForms"> <ng-...
1
vote
1answer
34 views

How to pass or reference item from ng-repeat to another element?

I want to pass a single item/object ('ca') from a repeater to another element (in this case a modal) within the same controller context: <div data-ng-controller="ContactActionCtrl" data-ng-app="...
4
votes
1answer
77 views

AngularJS - Filter already selected items from ng-select inside ng-repeat

I've found similar questions but no one is having the same problem I'm having. I have a list of localizations that a user can add to (for building their own localization of our UI). They can have ...
0
votes
1answer
14 views

JQuery with 2D array in ng-repeat

I need to get the value of the 2D array on this code using ng-repeat. <div ng-repeat="n in status"> <div ng-repeat="x in n track by $index"> ...
0
votes
2answers
47 views

Multiple (Two) ng-repeats on DataTable in AngularJS

Now I know this is a very common topic but I'm not getting any solutions from the SO questions that I saw till now. I'm currently working on a page that has a DataTable whose data is coming from the ...
1
vote
1answer
46 views

Angularjs: Compile ng-repeat dynamically

I have found some strange behavior with Angularjs. My directive simply adds and compiles ng-repeat to my dom element. However the scope variable item is not accessible. Look at the code below for ...
0
votes
0answers
56 views

Input name is not getting interpolated from {{}} to the value

Below is the attached picture of the form constructor. As you can see it has {{service.name}} in it instead o fthe name itself. I have a form inside that I have two ng-repeats with custom filters on ...
0
votes
1answer
29 views

ng-repeat filter - Not filtering right?

I am using a filter in a ng-repeat to separate a list of Jsons in two sub-lists: One with Present-past items and other with future items. The json has a key called "dateFrom" which i compare with the ...
1
vote
1answer
20 views

Angularjs - How to show nested array on click of Parent array in ng-repeat

Please refer to this plunkr, plunkr WHat I want is If I click of Reading Korean then it should display its nested part i.e. Vowels,Consonants,Simple Words,Harder Words angular.module('...
0
votes
1answer
24 views

Angular 1.5.8 Component, get parent context in ng-repeat

I am creating a dynamic menu with ng-click action template is configured in DB. <ul class="dropdown-menu dropdown-menu-right" id="widget-{{$ctrl.id}}-context-menu"> <li ng-repeat="Menu ...
0
votes
1answer
31 views

show error message after ng-repeat section

I have added a ng-repeat section in AngularJs. I hve added a required field validator. However, the page height increases when all the fields are emptied, as the span tag data shows up.. Is it ...
-1
votes
1answer
32 views

ng-repeat end & start sliding animation

I created this toggle menu template but i have problem implementing this sliding-animation. Can anyone help me?
0
votes
0answers
35 views

nested rest(async) calls with ng-repeat

I have two Rest calls one call is dependant on other . StudentService.getStudentDetails({"status":$scope.status}) .then(function (response) { $scope.rowCollection = response; $scope....
0
votes
1answer
38 views

AngularJS ng - repeat, ng - model on input text strange behaviour

i am new to AngularJS, i try and do the code below var app = angular.module('SomeApp', []); app.controller('QuotationController', function($scope) { $scope.init = function(){ $scope....
1
vote
1answer
36 views

Dynamic ng-model with checkbox in ng-repeat

I have a JSON object like as below with name $scope.permissions { admission:{create:false,delete:false,read:false,update:false}, student:{forDelete:false,read:false,viewPhone:false}, ...