11
votes
2answers
4k views
How to use ng-repeat for dictionaries in AngularJs?
I know that we can easily use ng-repeat for json objects or arrays like:
<div ng-repeat="user in users"></div>
but how can we use the ng-repeat for dictionaries, for example:
var users ...
5
votes
2answers
450 views
using ng-model within nested ng-repeat directives
I'm trying to use ng-model "within" a ng-repeat directive that is itself nested in a ng-repeat directive.
The following jsfiddle demonstrates my problem and my two attempts to solve it.
...
4
votes
2answers
543 views
Directive isolate scope with ng-repeat scope
I have a directive with an isolate-scope (so that I can reuse the directive in other places), and when I use this directive with an ng-repeat, it fails to work.
I have read all the documentation and ...
4
votes
2answers
115 views
Can I avoid the object variable name in ng-repeat loop?
When defining an ng-repeat directive to iterate over an array, the syntax specifies ng-repeat="friend in friends", and then within the template you use the interoplation operator like so ...
4
votes
1answer
211 views
Angular.js change on one item of ng-repeat causing filters on all other items to run
I'm still running into the same problem, filters and functions inside ng-repeat being called all the damn time.
Example here, http://plnkr.co/edit/G8INkfGZxMgTvPAftJ91?p=preview, anytime you change ...
3
votes
1answer
64 views
dynamically adding directives in ng-repeat
I am trying to dynamically add different directives in an ng-repeat however the output is not being interpreted as directives.
I've added a simple example here: ...
3
votes
2answers
236 views
How to delay ngAnimate in ngRepeat
When using ngAnimate to fade in each item in ngRepeat, currently all items fade in at the same time. Is it possible for each item to fade in after the previous item has faded to e.g. 50% resulting in ...
3
votes
1answer
59 views
ngRepeat and directives execution order
When an Angular directive contains an ngRepeat element, the ngRepeat execution appears to to occur after the containing directive's link execution.
Is there a mechanism ($watch, $observe, etc) that I ...
2
votes
2answers
1k views
rebinding jquery after angular js ng-repeat
I'm filling in an array in angularJS using $http.get() service, by calling a rest api. This array is displayed using ng-repeat. There is Jquery code to display a button on hovering over each of the ...
2
votes
2answers
192 views
Syntax for ng-repeat angular directive and pipe character
I am studying the angularJS home page samples and I came across the following usage of the angularJS ng-repeat directive:
<tr ng-repeat="project in projects | filter:search | orderBy:'name'">
...
2
votes
2answers
108 views
AngularJS: Repeat after a particular index
I am using AngularJS and I have a requirement in which I need to repeat an element after a particular index. So, let's say my code is:
<label ng-repeat="stones in rocks">
<a ...
2
votes
2answers
516 views
condition / directive in Angular ng-repeat
I'm just starting out with angular. I currently have an json array of products being displayed within an ng-repeat and am looking to add a class to every third product.
Is there a way to write a ...
2
votes
1answer
68 views
Using AngularJs “ng-style” within “ng-repeat” iteration
I am tring to conditionally set the colors of data elements in a table based on their value using ng-style. Each row of data is being generated using ng repeat.
So i have something like:
<tr ...
2
votes
1answer
348 views
Two way binding of contenteditable item inside ng-list
I am looking to update Phone Name in a list of phones using contenteditable attribute. I have tried using ng-change but thats not getting fired. Is there any way I can do this?
I have a list of ...
2
votes
1answer
152 views
Watch for filtering event in AngularJS - lazy loading images
I would like to watch for the filtering event from within my directive when filtering on ngRepeat occurs. Is there an event that gets emitted when filtering occurs?
What I am doing is implementing ...