Most voted "ng-repeat" questions
34 questions
Sort by count of
-
8
votes1
answer154
viewsDoubt with ng-repeat
I have the following code: <div id="box-1" class="box"> <div ng-repeat="task in contato " style="margin-top: 5px"> <div class="md-card md-card-hover"> <div…
-
6
votes1
answer3874
viewsWhat is the importance of using "track by" in "ng-repeat"?
Whenever I see any article on the internet on how to optimize the render time of ng-repeat, I see comments on the option track by. Example: <div ng-repeat="task in tasks track by…
-
6
votes2
answers297
viewsWhy does href not work as desired?
I am using a special Theme in my application that has a chat feature. To open this chat the template uses the following reference href="#offchat-canvas" to an element in my view. This chat is a…
-
6
votes1
answer12988
viewsGet the $index of an ng-repeat that contains an ng-controller in $Scope in Angularjs
I have an app that uses a ng-repeat to list information. Like this: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl">…
-
6
votes3
answers1020
viewsHow to send data from a form received from an ng-repeat with Angularjs
Hello, folks maybe my question is not enlightening, but I’ll try to enlighten here. I have a code in Angularjs and html, if it is a form, which receives the data in array/json format, and populates…
-
4
votes2
answers454
viewsHow to sum up all the elements of an ng-repeat?
Example: I have any ng-repeat, which repeats each one a number. How do I store a variable that is equal to the sum of this number of each repeat? Code Angularjs: ngular.module('meumodulo', [])…
-
3
votes1
answer65
viewsconvert 1 to active and 0 inactive within ng-repeat angular
I have a value of flagAtivo that is 1 for active and 0 for inactive within a ng-repeat which I display in a table, but I need this value to be Active if 1 and inactive if 0 <tbody ng-repeat="oper…
-
3
votes1
answer3038
viewsCreate angular variable in html
Hello! I have a loop (ng-repeat) in my html file and would like to save its index in a variable to be able to pass parameter to a function. Does anyone have an idea how I can do that? Follow the…
-
3
votes1
answer194
viewsSpecific doubt using ng-repeat at angular
I am using Angularjs in a project where I need to display a list of photos of products registered in the system and my html is like this: // Titulo para a área de produtos <div…
-
3
votes2
answers916
viewsOrderby with ng-repeat nested in the Angularjs
I need to order a list, which is in two ng-repeat, but I can only order within the group of the second ng-repeat and made a jsFiddle that shows my code: https://jsfiddle.net/xxg4ajkk/2/ The order I…
-
2
votes1
answer800
viewsJsangular Multiple ng-repeat
I’m having a hard time creating a loop with ng-repeat, at the angle. Next... I wanted to create tags for each projeto that I add, example: See that it is possible add more tags and there is also, in…
-
2
votes2
answers305
viewsHow to make an ngRepeat without a parent element?
I’m using Angular with Admin LTE. I need to make a ng-repeat where the li within a ul will repeat. I cannot repeat the ul, but only the li within that ul. I can’t encompass those either li with a…
-
2
votes1
answer3906
viewsAngularjs Filter with Argument Array
I would like to check a way to add filters to a table of records (ng-repeat) through an array and not just text. https://plnkr.co/edit/FRaceRkO4uBSyfZYay6e?p=info Note: I am using $filter to filter…
-
2
votes2
answers105
viewsHow do I use dynamic information coming by ng-repeat {{}} and use it as the argument of an ng-click (button) function?
I have a function ng-click: ng-click = "adicionar(0);" This function ng-click is inside the loop ng-repeat = "mercadoria in listademercadoria". There is a way to pass on information according to the…
-
2
votes2
answers680
viewsHow to make a button appear/disappear only from one of the loops created by ng-repeat? (Programming in Angularjs)
My angular code has an ng-repeat as follows: Angularjs: angular.module('meumodulo', []) .controller('mercadoria', function($rootScope, $http) { var ctrl = this; $rootScope.listademercadoria = [];…
-
2
votes1
answer334
viewsHow to group ng-repeat in Angularjs
I need to group the Class field and list the tasks that exist, but I can’t do that with Angularjs. Here is my view: <div class="row"> <div class="col-md-12"> <div…
-
1
votes0
answers125
viewsng-repeat in JSON file
I’m putting together a menu with ng-repeat="espaco in espacos". Until then quiet. <ul class="nav nav-pills nav-stacked"> <li role="presentation" ng-repeat="espaco in espacos"><a…
-
1
votes2
answers668
viewsNG-REPEAT inside NG-REPEAT - ANGULARJS
I have a multidimensional array. To demonstrate it in my view I use an ng-repeat in a ul inside another ng-repeat in a li, thus: <ul ng-repeat="section in sections"> <li>…
-
1
votes1
answer122
viewsHow to pass ng-repeat {{$index}} as a mixin parameter? (Angularjs)
I am working with Aquivos . jade and using ng-repeat from Angularjs 1.5.8. I cannot pass a {{$index}} as a parameter in a mixin. This parameter is a string that defines an ng-model within the mixin.…
-
1
votes1
answer710
viewsng-repeat angular
I am developing an application with a GRID and I needed to format the dates coming to this GRID using data filter angular. However I am not being able to print the date array inside the tag…
-
0
votes1
answer2505
viewsDynamically populate input with angular
Friends, help me make a script in which I can add words to an input as a button is clicked. The words should stand side by side and separated by comma: word1, word2, word3 This gives me an input, as…
-
0
votes1
answer71
viewsAngular.js dynamic filters
How can I get a variable to be transformed into value as in the example: ng-repeat=" op in opportunitiesUnica | filter: Referencecode = 'VARIABLE'"?
-
0
votes1
answer50
viewsRemove information from within an angled array
I have an array with some information and that always comes with 4 numbers in front of the Names: {id: 1810, name: "2652joaodasilva", username: "", password: ""} {id: 2744, name: "3704DiegoSerri",…
-
0
votes0
answers20
viewsBrowser with Answer Oh not for Ionic app
I’m developing an app with Ionic and I’m trying to convert a xml of 322mb for json, to take the data to the page using angular js. Follow the code excerpt: .controller('ParlamentarCtrl',…
ng-repeatasked 9 years, 3 months ago Clvschaves 1 -
0
votes2
answers1538
viewssum of values with ng-repeat
Good night I’m having a problem adding up values with ng-repeat Object 1 COMISSAO_CORRETOR: "5.0" CPF_CONTRATO: "xxx.xxx.xxx-xx" NUMERO_CONTRATO: "1234567" VALOR_BRUTO: "70000.00" VALOR_COMISSAO:…
-
0
votes1
answer785
viewsReplicate information by JS Angular table columns
I have a table where I need to duplicate the table columns when the ID changes in the received array. The array consists of…
-
0
votes2
answers118
viewsProblems with ng-repeat
I have a problem in ng-repeat, can help me please? Php code public function listar_extras() { $data = json_decode(file_get_contents("php://input")); $tamanho = $data->tamanho; $sPizza =…
-
0
votes1
answer274
viewsWhy does ng-repeat from Angularjs not work in Bootstrap Modal?
In my project, I used a nesting of ng-repeat to assemble several checkbox dynamically, enabling the user to combine filters, what works perfectly when mine controller upload the lists. Now, the user…
-
0
votes1
answer250
viewsAngularjs - ng-repeat is not working
Good afternoon, I made the following code: http://jsfiddle.net/27du7oaL/5/ . Accessing Jsfiddle, you can see that Angular shows the title that is in the controller, but does not show any data…
-
0
votes1
answer145
viewsAngular asynchronous ng-repeat
I am using Angular 1.6.10 to show the data of an API, as the data search is asynchronous, I believe ng-repeat runs before the data is loaded: angular .module('appDataPOA', [])…
-
0
votes1
answer109
viewsUsing ng-style for a boolean variable inside an ng-repeat Angularjs
I have a listing this way : <tr md-row md-select="cali" md-select-id="name" md-auto-select ng-repeat="cali in vm.calibracoes"> <td md-cell>{{cali.idCalibracao}}</td> <td…
-
0
votes1
answer33
viewsHow to list values using ng-repeat using Angularjs and Jsonresult ASP.NET MVC?
Good Friends! I am working on a MVC application that returns JSON to an Angularjs controller, it turns out that these values are unit values and lists. And when rendering in the view, only unit…
-
0
votes1
answer37
viewsHow to unify regions with Angularjs no ngrepeat repeating records from a given field
The back-end returns me a json with the records I need to show in the view. A "contract" can have more than one "demand" and when this occurs, it is repeated (in the database by another application)…
-
0
votes0
answers20
viewsng-model inside an ng-repeat
I tested several answers I found here, but nothing solved. Each dataSample.name generates a line, with a SELECT with other options: Example: dataSample exame sangue ------- select -> tipo_de_tubo…