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.

0
votes
1answer
34 views

AngularJS - how to filter by an array of integers in a ng-repeat?

I have a ng-repeat and I was filtering it by a simple integer in this way: view: ng-repeat="t in vm.presencesByPerson | filter: vm.customfilter"> controller: here I have a watcher on a ...
0
votes
0answers
13 views

Watch changes in ui-select inside ng-repeat directive [duplicate]

I have an ui-select inside and ng-repeat directive and want to watch changes whenever the user selects another option. I have tried to get the newItem and oldItem but the watch event only gets called ...
0
votes
1answer
18 views

How to display 2 solid gauge using ng-repeat function?

I want to create 2 solid gauge. I am trying to use ng-repeat in HTML in which there are 2 data. So according to that the ng-repeat function should display 2 solid gauge using the same div. I have used ...
0
votes
0answers
24 views

How do I add an icon within a td at the end of each row using ng-repeat?

I have a 2-dimensional array. I am using it as a source to populate an html table using angularjs ng-repeat. I want to add an icon at the end of each row. It works on the first two rows, but then the ...
0
votes
0answers
24 views

Can AngularJS ngRepeat elements be animated from multi-dimensional (nested) arrays?

I have a table built from a multi-dimensional array, where each element in the array is another array that represents a row in the table, and each element in the nested array contains the cell data. ...
0
votes
2answers
32 views

How to filter Multidimensional Array with limitTo in AngularJS

I have a following Multidimensional Array in the controller. var app = angular.module('myApp',[]); app.controller('myController',function($scope){ $scope.myData = [{name:'Person1',surname:'...
0
votes
1answer
33 views

AngularJS - Expandable rows not working with ng-repeat

I have hard-coded two expandable rows which work fine. However, when I try to introduce ng-repeat the rows will no longer expand. Working version: https://jsbin.com/tiwufiz/3/edit?html,js,console,...
0
votes
0answers
33 views

Add font-awesome icon to one option in select created by an ng-repeat

Is it possible to add an icon to an option in a dropdown based on if it matches a certain setting from the data returned in an ng-repeat? I have the following select and the options within that ...
0
votes
0answers
25 views

How to get ng-repeat to work with orderby

I'm trying to sort dropdown options based on a setting called 'IsDefault' DESC and then name, however it seems adding the orderBy per the different examples I've looked at doesn't seem to work. Data ...
0
votes
2answers
44 views

AngularJS filter show only matched word as result, not entire string

Is it possible to display only the matched word in ng-repeat with filters? For example I have the following strings [ {text: 'This is first text from the array.'}, {text: 'Text in this array is ...
0
votes
0answers
33 views

can element using ng-repeat access variable created by ng-repeat?

is this valid for ng-repeat in angularjs 1.7.x <div ng-repeat="item in items" ng-class="item.id"> {{tab.label}} </div> I am confused with the usage of variable created by ng-...
2
votes
1answer
69 views

AngularJS append HTML in the ng-repeat element

Using AngularJS I need to append HTML to the elements of ng-repeat, using the selector: 'objectMapParent-' + post._id <div ng-repeat="post in posts"> <div id="{{ 'objectMapParent-' + ...
1
vote
1answer
19 views

how to shows last index input value tag… ng-repeat

how to shows input value in last index in ng-repeat but its shows everyrow item... i want only last index user enter payment amount please anyone help me this highly appreciated <table class="...
0
votes
2answers
38 views

AngularJS use a global variable within a template for orderBy ng-repeat value

I'm working on a angular app which I do not have access to the source of the app only to the component html code. I want to re-order a array with a custom function, but I'm not sure it's possible to ...
1
vote
1answer
22 views

How to get instances of ckeditor with ng-repeat?

I am trying to use ckeditor with angularjs I have added a directive for the same. It is working fine. The problem is when I try to get the instances list of the ckeditor. // directive app.directive('...
0
votes
3answers
50 views

ng-repeat deosn't the data from JSON object in the HTML Template

I am trying to render a json as a table in a HTML Template using angularjs ng-repeat element. The script file passes the JSON object, but the ng-repeat wont render the contents of JSON. I followed ...
1
vote
1answer
33 views

How to make bxSlider work in AngularJS with ng-repeat?

I am trying to update an existing dynamic web-page that gets images and titles from SQLServer database, which loaded into AngularJS ng-repeat. bxSlider works fine with static data but when it comes to ...
0
votes
1answer
44 views

Set ng-model value from ng-repeat input in angular js?

I am trying to allow the customer to edit a list of items by using ngRepeat and ngModel. But i am not able to set response to the input fields Here is the code. <form name="customerupdateForm" ng-...
0
votes
1answer
32 views

How to display array in table using ng-repeat

Unlike other JSON data , I have simple arrays of two. $scope.land = [ elephant, tiger, zebra ]; $scope.water = [ fish , octopus, crab]; I want to put up the array in table using ng-repeat. I tried ...
-1
votes
2answers
55 views

How to filter values of <select> in angularjs?

I want to filter the values of a <select>. I have a table with first column <select> . For eg: object for the <select> is JSON: json1 = [{id: 1, name: 'ABC'}, {id: 2, name: 'DEF'}...
0
votes
1answer
37 views

AngularJS: Is there a way to use ng-repeat to create rows and columns from the same array of data?

I am attempting to create a loop that will run through an array and output the data into rows/columns. For each two items in the array, i'd like it to create a new row with two columns, like this: &...
0
votes
1answer
17 views

Problem by passing a value from ng-repeat in a parameter from a function call

I have the problem, that i can´t pass the value (x) from the ng-repeat in a parameter for a function (laenge2()). Only error i get is: x is not defined. <div class="input-group mb-3" ng-repeat="x ...
0
votes
1answer
15 views

Nested ng-repeats with bootstrap collapse, trouble with $index and ng-init

I have a bootstrap collapse accordion with multiple ng-repeats: <div class="subdiv-wrapper"> <div class="panel-group" id="accordion1" ng-repeat="admin in subdivisions" ng-init="...
0
votes
0answers
22 views

Get ng-model value from ng-repeat input in a bootstrap modal

I need to show some data from an array with ng-repeat and each data have its own input field. I need to append those inputs dynamically and then get the data from them by calling a function. //...
0
votes
0answers
25 views

How to list values using ng-repeat using AngularJS and JsonResult ASP.NET MVC

I'm trying to render a list from my JsonResult Controller. It's ok, I receive data in my Angular service, but a in trouble to render it in a list using ng-repeat. It´s renders a big empty list. When ...
0
votes
2answers
37 views

AngularJS Check/Uncheck All checkboxes from ng-repeat object array

Fiddle Example I've a table in which each row has checkbox and another checkbox in to check-all rows (checkboxes) and send ID of selected/all row(s) as JSON object. I've an object array from (GET) ...
0
votes
2answers
66 views

Push and splice into array when checkall and checkbox is checked in angularjs

I am trying to push and splice the elements based on checkall, single checkbox clicked, my problem is I am getting a list from angularjs post request and displayed it using ng-repeat I have given ...
0
votes
0answers
40 views

Any way to order md-option to show selected ones first? [sort of fixed, but not really]

I have a list of options, and each option can have multiple tags selected, from a common array of tags. In the example below, it is ordering the Tags of each Option row by a single "selected tags" ...
0
votes
1answer
67 views

How to implement a loop in a multi parameters filter in a ng-repeat?

I would like to make a loop in a filter parameters Hey, I'm doing a multi filters table. Each column as an input to add a string to filter on. For each column, I call the parameter name with the ...
2
votes
1answer
71 views

Angularjs How to get all dates and days in a week

How to get all dates and days of a week in angularjs <script> function startAndEndOfWeek(date) { date ="2019-02-26 00:00:00"; -- passing any date here ...
0
votes
1answer
25 views

Angularjs - Attempted to trust a non-string value in a content requiring a string: Context: html - while inserting data

I'm trying to insert HTML content dynamically based on the ITEMS available in DB and need to save back to DB again on click of each item's save button which was added dynamically as below. Controller....
0
votes
1answer
45 views

How to display array with ng-repeat

I have an json array of the form": { "School1": [{"name": "john", "age":"28"}, {"name": "paul", "age":"27"}], "School2": [{"name": "david", "age":"27"}, {"name": "...
0
votes
1answer
37 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
37 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
31 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
40 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
31 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
27 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. ...
-1
votes
1answer
39 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
24 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
50 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
31 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
11 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
36 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
49 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
27 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-...

http://mssss.yulina-kosm.ru