Questions tagged as 'ng-repeat'

1
answer

Doubt 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 class="md-card-content"> <d...
asked by 27.08.2017 / 15:26
1
answer

What is the importance of using "track by" in "ng-repeat"?

Whenever I see an article on the internet about optimizing rendering time for ng-repeat , I see comments about the track by option. Example: <div ng-repeat="task in tasks track by task.id"></div> As far as I unde...
asked by 16.11.2017 / 19:07
2
answers

Why does href not work as intended?

I'm using a special theme in my application that has a chat feature. To open this chat the template uses the following href="#offchat-canvas" reference for an element of my view. This chat is an offcanvas that has the message history....
asked by 23.12.2015 / 14:47
3
answers

How to send data from a form received from an ng-repeat with angularjs

Hello, people, maybe my question is not enlightening, but I'll try to elucidate here. I have a code in angularjs and html, this is a form, which receives the data in array / json format, and populates that form, with an ng-repeat, what I need to...
asked by 04.03.2016 / 18:57
1
answer

Create angular variable in html

Hello I have a loop (ng-repeat) in my html file and would like to save the index of it in a variable to be able to pass parameter to a function. Does anyone have an idea how I can do this? Follow the code in View: <div class="lista...
asked by 27.07.2016 / 00:51
2
answers

How to sum all the elements of an ng-repeat? [duplicate]

Example: I have a ng-repeat any, which repeats each a number. How do I store a variable that is equal to the sum of this number of each repeat? Angular CodeJS: ngular.module('meumodulo', []) .controller('mercadoria', function($root...
asked by 27.09.2017 / 13:44
1
answer

Get the $ index of an ng-repeat that contains an ng-controller in $ scope in AngularJS

I have an application that uses ng-repeat to list information. So: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl"> <pre>{{item}}</pre> </div&g...
asked by 22.01.2016 / 14:35
2
answers

OrderBy with ng-repeat nested in angularJS

I need to sort a list, which is within two ng-repeat , but I can only sort within the group of the second ng-repeat and made a jsFiddle that shows my code: link The order I want to work is as in the example below....
asked by 10.10.2017 / 15:16
1
answer

convert 1 to active and 0 inactive within ng-repeat angular

I have a flag value that is 1 for active and 0 for inactive within a ng-repeat that I display in a table, however I need this value to be Active if 1 and inactive if 0 <tbody ng-repeat="oper in operadorasCartoes" >...
asked by 18.05.2018 / 14:58
1
answer

Specific doubt using non-angular ng-repeat

I'm using AngularJS in a project where I need to display a list of photos of products registered in the system and my html looks like this: // Titulo para a área de produtos <div class="header-products"> <h3>Produtos</h...
asked by 18.09.2017 / 21:45