The ngRepeat directive is a built-in component in AngularJS, and instantiates a template once per item from a collection.
0
votes
0answers
4 views
Set data- attributes on <option> elements in Angular.js
I need dropdown selector with lots of metadata displayed, so classic <select> is not enough for me. jQuery plugin select2 to the rescue. To render custom markup by this plugin you need setup ...
0
votes
0answers
15 views
What is this watch expression in Angular.js Batarang?
I'm trying to do performance tuning on an Angular.js application using the Angular.js Batarang Chrome extension. One of the extension's features is that it lists all the 'watch expressions' that ...
0
votes
0answers
8 views
AngularJS ng-repeat | orderBy grade level
I have an ng-repeat that iterates over an object that has keys K-5 to represent grade levels.
<th ng-repeat="(key, value) in grid.responses | orderBy: key">{{key}}</th>
The above code ...
0
votes
1answer
37 views
How to update ng-model dynamically in ng-repeat?
I am facing some problem with dynamic ng-model values in my angular page. Here is my sample JSON.
mytabs = [
{
name : "tab1",
values : [
{value:"value1"},
...
0
votes
0answers
14 views
Angular ng-repeat filter with predicate function not works as expected
This is my first time playing with AngularJS, and actually, I'm following the getting-started tutorial. It came to my mind that I would tweak the tutorial scripts to my understandings, by just adding ...
1
vote
1answer
34 views
“Static” attributes in AngularJS
I have a directive which generates a large amount of html input[type="radio"] with ng-repeat. Each of them has a number of attributes assigned.
Basically:
<div ng-repeat"day in days">
...
2
votes
2answers
45 views
Avoid using extra DOM nodes when using nginclude
I'm struggling to wrap my mind around how to have an ng-include not use an extra DOM element as I'm building an angular app from a plain-HTML demo. I'm working with pretty slim HTML with fully ...
0
votes
1answer
23 views
Model binding is not working when creating different type inputs dynamically with AngularJs ng-repeat
Please look at the code at plunker http://plnkr.co/edit/TZI0xM
If the input type is fixed (all text or all checkbox...), there's no problem, data binding is working, but if I defined the input type ...
2
votes
0answers
36 views
turn off re-sorting in angularJS while editing
I have an AngularJS app that lists a bunch of items in a table. Like this:
<table class='unstyled tmain'>
<tr>
<td ng-click='setSort($event)'>X</td>
<td ...
0
votes
1answer
45 views
AngularJS and ng-repeat elements do not exist in DOM yet - getting NULL exepction
So I am trying to use an external library function to create some manipulation in the DOM in one of my controllers that my ng-repeat is connected to. The problem is the following:
I am calling that ...
0
votes
1answer
27 views
different elemens with ng-repeat
By AJAX I get JSON:
data : [
{
"type":"h2",
"PCDATA":"Title"
},
{
"type":"p",
"PCDATA":"First paragraph."
},
{
"type":"li",
"PCDATA":"list node"
...
0
votes
1answer
61 views
+100
angularjs ngrepeat insert batch
Is it just me or does ng-repeat DOM inserts not batch. As we all know DOM manipulation is slow and operations should be batched for performance. When using ng-repeat on a collection it should create ...
1
vote
1answer
42 views
2D array $Index in AngularJS
I'm working on an AngularJS app that builds a spreadsheet out of a 2D array built by the ng-repeat function. I'm currently writing a function that will change the initial values of the array when the ...
0
votes
1answer
19 views
Get/Set values of dynamical generated input fields using ng-repeat in Angular
I have an input field which once filled with a number populates that count of additional input fields. I can't figure out how to get the values inserted in those generated input fields. Any help is ...
0
votes
1answer
23 views
How to conditionally insert HTML after AngularJs Directive paired with ngRepeat?
=================
First of I just want to say that I'm new to this AngularJs business (started earlier today) and I probably over complicate things.
With that being said let's get down to business, ...