Questions tagged [angularjs-ng-repeat]

The `ngRepeat` directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop variable is set to the current collection item, and `$index` is set to the item index or key.

-1
votes
0answers
33 views

Pagination is not working in ng-repeat in AngularJS.Can you please advise

I am trying to implement pagination in ng-repeat.I have mentioned the pagination logic for ng-repeat in the controller and .html page and have written the pagination logic inside &http.But the ...
0
votes
0answers
26 views

AngularJs Filter: Generating notArray errors

I'm having an issue with a filter in my angularJS project. We have a simple draft feature that allows users to save the contents of a large form as a JSON string in our database. They then can go to ...
1
vote
2answers
34 views

angularJs ng-repeat and showing errors above the table

This should be relatively simple question (I hope) but I spent several hours last night without a success. I'm displaying equipment rows in a table using ng-repeat and input controls and I'd like to ...
0
votes
1answer
24 views

AngularJS - update ng-repeat list in DOM instantly to allow animation

I have a list to which I can add languages. When a language is added, there is an animation for maximum eye candy sexyness. The animation is triggered by a state change in ng-show="lang.visible" in ...
0
votes
1answer
35 views

Detect when the user has changed the order of a sortable table

I am currently trying to see if there is a way to detect when the user changes the order of a sortable table. I have the table set up with the code <table class="table table-striped table-hover" ...
1
vote
1answer
30 views

Applying rowspan in table with ng-repeat angularjs

I have array like this $scope.orderno=[ {"orderno":1254,"weight":25875,"group":5}, {"orderno":56787,"weight":25875,"group":5}, {"orderno":567,"weight":25875,"group":3}, {"orderno":123254,"weight":...
0
votes
1answer
15 views

Angularjs listbox control with single selection

I'm just looking for a listbox with single selection so that each item can be selected from the listbox. But unable make it to single selection using the below code after make it to multiple = false. ...
0
votes
1answer
33 views

How to convert string into JSON data in view part of angularjs

Hi I have this data in JSON form, and I want to convert this data of option into json so that i can call optionName, optionSubName in a view part of angularjs [ { "heading": "MakeUp ...
0
votes
0answers
22 views

Loop through radio buttions and labels without container element Angular JS

I have a scenario where I need to loop through radio buttons with label but without a container element. Here is my html <div class="star-rating"> <div class="star-...
0
votes
1answer
27 views

AngularJS DOM updates on adding element to $scope but not for deleting

I have an Angular 1.x app and I am able to successfully update the DOM via ng-repeat when adding an element to an array in the controller. However the DOM does not update when I try to remove an ...
1
vote
1answer
37 views

How to create subtotals in a ng-repeat in Angular JS

I'm just learning AngularJS and need to create the report below. I have all the detail lines working well but have no idea how to create the subtotal lines. Detail lines... <tr data-ng-repeat-...
0
votes
1answer
38 views

how get the “parent name” and read the object in the ng-repeat AngujarJs?

if i have a response object like this: Object Json format from my js file and i need use the ng-repeat for this element but i need to get the name "street 1" too, how can use the ng-repeat for get ...
0
votes
2answers
30 views

AngularJS: ngIf in array of array with different properties

my object: objects = [ { name: "1", foo: [{ value: 0.5, ignored: null, text: "foo1" }, { value: 0, ignored: null, text: "foo" }] }, { name: "2",...
0
votes
0answers
7 views

ReactJS template replace in children and/or variable to be available in scope

What I want is to create a component which would render its children, but with certain parts of the template replaced, like a template. For example, say that component is called Foo and I want ...
0
votes
0answers
10 views

Specific time transition owlCarousel in Angularjs

I have the following array: [ {"img":"img1", "duration":1000}, {"img":"img2", "duration":3000}, {"img":"img3", "duration":10000} ] And I am using owl.carousel to show them, all is good with ...
0
votes
2answers
32 views

Problem with outputting data with AngularJS on HTML

I'm currently struggling to understand what mistake I've made when writing up the code. I am just trying to get the initial array values to show up where the table data would be but i'm getting no ...
1
vote
3answers
44 views

How to ng-repeat response data

I have a simple piece of code that sends data to php for processing and then it returns it. I would like to ng-repeat that data in the page, I just can't tell what isn't right. I must point out to the ...
0
votes
0answers
13 views

Multiples images in carousel with angularjs ng-repeat

I'm using the code Code_Carousel which allows to make a slider that combines videos and images I've tried and it's very useful, but my question is, how to adapt it to my angularjs project using ng-...
0
votes
1answer
18 views

Angularjs ui-select Dynamic object mapping inside repeat

my ui-select directive code is below just working fine. Inside repeat , i need to set propert of CODE object (which is ID) to dynamic like code[fwValueProperty]. As far as i know , it is not ng-...
0
votes
0answers
33 views

AngularJS : Why ng-repeat does not update the drop-down using the $ctrl in UI

I'm updating my model in applyType method but the items are not reflecting in the UI. Here is what I'm doing My model is : model.js export default function model( $scope, ) { ... model.$name ='...
0
votes
2answers
30 views

Multi Layer JSON for AngularJS ng-repeat format

My Data looks like this: [ { "TravelerExtended": { "ExtendedInt_1": { "#text": "0", "Label": "Do you require the hotel has a spa or fitness center?:" }, "...
2
votes
1answer
39 views

How to add dynamic column in ng-repeat filter

Is it possible to add a dynamic column filter:{'Is'+dType.Name:true} in ng-repeat filter? <option ng-repeat="option in mainCtrl.Maps | filter:{'Is'+dType.Name:true}" ng-value="option.Id">{{...
0
votes
1answer
41 views

Ng-repeat to compare and count objects based on value

I need help to "make" NG-REPEAT and whole limitTo aware of food component ng-show logic, how can i achieve that? In other words, how can i insert that logic to ng-repeat and limiter? JS side / HTML ...
1
vote
1answer
58 views

Why ng-repeat records multiply in combobox in Aspnet Mvc?

I am using angularjs ng-repeat for a combobox but it multiply records that n*n times.(if there is 5 record then it show 5*5=25 records) I use ng-repeat like this: <div class="profile-info-value ...
0
votes
0answers
33 views

Having problem getting scope of ng-repeat,even if im getting its not working

Here is the code <tr ng-repeat="x in arry" ng-init="initscope($parent)" ng-mouseover="hoverIn()" ng-mouseleave="hoverOut()"> <td>{{x.name}}</td> <td>{{x....
2
votes
0answers
73 views

Changes in scope variable not updating DOM

I came across this angularJs issue where a change in an array is not updating the DOM, even though there is a binding in place. I have tried everything from using $scope.$apply, $scope.$evalAsync and ...
0
votes
2answers
47 views

How do I run a ng-repeat loop inside a table in html?

<thead> <tr> <th ng-click="sortData('firstname')"> Firstname <div ng-class="getSortClass('firstname')">&...
0
votes
2answers
56 views

How to access ng-model values outside of ng-repeat?

I have a table that is filled with <input> fields in every <td>, that are repeating in ng-repeat. In some cases some of the inputs may came with null value. I want to access the ng-model ...
1
vote
0answers
20 views

Angularjs Model Array Not updating with Template

I've created the template with the below code. The edit functionality works fine however the model is updating back. In the template, I've binded the model with ng-model but still it is not updating ...
0
votes
0answers
24 views

extract JPG's from video and upload to Azure Storage

i am trying to build an upload frames grab from a movie trailer that i select. These files need to be uploaded to Azure Storage as jpg files. The frame grabbing section works fine (each half second), ...
0
votes
0answers
37 views

How to not remove focus from input field while changing condition from ng-if?

I have a table where I repeat data with ng-repeat and in table data I have <input> tags where the client can see if the data that he will send to server are null or completed. I want to detect ...
0
votes
0answers
10 views

Mongoose removing object from array of objects

I'm creating crud operations for a small website feature using MEAN(angularjs) stack. Bid is an object with a key of Vendor that contains an array of objects that are vendors and their attributes such ...
0
votes
0answers
22 views

Push inside AJAX Success not updating ng-repeat

I have an ng-repeat that loops over $scope.events, and in the success function in ajax, it pushes a json string into the $scope.events array. However, the indexes that are pushed in the success ...
1
vote
1answer
50 views

How to change the pagination after filtering, and not looking for the result on the pages?

The pagination would not update itself as the filter applied. Data is loaded from the database using a Python script. I'm new to AngularJS. How do I change the code to solve this problem? I tried to ...
0
votes
1answer
18 views

AngularJS ng-repeat : orderBy not react on limitTo changes, works with old data only

I have a ng-repeat with first 20 items via limitTo and its dynamic - i press "read more" +20 become visible. Problem: i have orderBy and after "read more" it do order only for old data... How can i ...
0
votes
1answer
19 views

How to select the option in ngOptions with the help of the third parameter present in the option object?

I have options array for select dropdown like [ {key:1,value'foo',selected:true}, {key:2,value'foo2',selected:false} ] I want to select option value with the property selected true in my ...
1
vote
6answers
153 views

Display label displayed in options as the title of select

How to show option.Brand.Name as the title of the select field without using java script and changing the ng-model? <select ng-model="detail.BrandId" title="" class="form-control" disabled> ...
0
votes
0answers
28 views

Angular ng-repeat not showing data from http.get

Let's start off with stating the fact that I have looked in if not all, most of the questions regarding this problem, but unfortunately I could not find an answer to this. I have this basic http.get: ...
1
vote
1answer
28 views

Issue with orderby a String value

I'm trying to orderby a value in an ng-repeat but it seems not working. I recreated the issue in the following codepen: CodePen N.B: orderBy 'book.contents.date' is not working: 111 is the first one ...
0
votes
1answer
49 views

How to make ng-repeat filter

Struggling to implement the filter like here ngrepeatFilter my data structure is like that: $scope.books = [ { id: 'id1', contents: { ...
1
vote
4answers
36 views

Angularjs - nested ng-repeat global index

I have next template: <div data-ng-repeat="supplier in order.Suppliers" data-ng-init="supplierIndex = $index"> <div data-ng-repeat="group in supplier.Groups"> {{something}} ...
0
votes
1answer
39 views

AngularJS ng-repeat over an array with filter

I have a JS array of objects. $scope.users = [{ "name": "alice", "city": "london", "wards": [{ "id": 1, "number": 24 }, { "id": 2, ...
1
vote
1answer
35 views

AngularJS checkbox to toggle my filter on/off

Hi I am trying to get a filter to return instances that have a certain quantity but can't seem to get it to work. What I have in my HTML: I would like my filter to apply when I hit this checkbox: &...
1
vote
1answer
40 views

Problem for using a textbox and radio buttons in order to filter a table in ng-reapeat Angularjs

I have a problem for filtering a table in AngularJS into ng-repeat. I would like to add radio button (based on table column) under a search text field for adding more filters. For the moment when I ...
0
votes
1answer
30 views

Angular - create a dynamic template for ng-repeat over different objects

Suppose I have an array of objects. I need to create dynamically a table using ng-repeat. The thing is, I don't want to hardcode every property of the object to the html. I created an array which ...
0
votes
1answer
49 views

multiple filters in AngularJS with text and radio buttons

I'm doing a search module on a table. The search (text field) on the table is working. There are equally sorts on column header of the table. I would like to add radio button under the search text ...
1
vote
1answer
33 views

How to get ng-repeat item count in angular js 1?

What i want to know is how can we get the ng-repeat count of items in angular js. From the code below I want to get the count of skill becuase i want to put a limit to it. If skill count > 5 limit ...
0
votes
1answer
44 views

angularjs Nested Ng-Repeat problem with ng-model

I am using ng-repeat within ng-repeat as follow <tbody> <tr ng-repeat="track in machine.noteMatrix2"> <td>--</td> <td ng-repeat="step in ...
1
vote
1answer
20 views

Disabling the Button for only a specific instance of ng-repeat

I have ng-repeat on a div that contains a button. Say the div repeats 5 times with 5 buttons. I want to disable the 2nd button when it is clicked. How can I disable the button at that index? <div ...
0
votes
2answers
29 views

Retrieving objects own properties based on key

I'm trying to get the keys from an object using coffeescript where the key is a certain value, but I'm also getting function properties along with the objects own properties. In getting the function ...

http://mssss.yulina-kosm.ru