0
votes
0answers
5 views
Ng-Repeat ng-show if previous item field value different
If have a list of items with date field which is ordered by date. I want to group these items by date somethings like;
Date1
item1
Date2
item2
item3
and so forth...
What I have is this;
...
0
votes
1answer
11 views
ng-repeat only displays final element
I am using ng-repeat in my html to display the title of each 'workbook' object in an array that is on the scope. For some reason, the third title is being displayed three times. There are three ...
0
votes
0answers
21 views
ng-model does not recalculate length of array on single keypress for a textfilter
I've got a table which uses a filtered textarea to construct a filtered table and list a count. The DOM is as follows.
<div filter-input></div>
<table>
<tr ng-repeat='item ...
1
vote
0answers
46 views
Angular JS Scaling & Performance
We are pounding our heads against performance issues with an Angular app we are building for a bank.
Unfortunately, it is a breach of contract to show snippets of the code. Regardless, I can describe ...
0
votes
2answers
19 views
ng-repeat filter on boolean
I am trying to filter on a boolean value in an ng-repeat.
List of unregistered users:
<h3>Unregistered Users</h3>
<div ng-repeat="user in users | filter:!user.registered">
...
0
votes
0answers
9 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
19 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
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
16 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
47 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
37 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
46 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
69 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
44 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
22 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
24 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, ...
0
votes
2answers
28 views
Issues with controller in an ng-repeat communicating data to a different controller, depending on which ng-repeat element was clicked
I am trying to do the following:
I have two controllers that communicate to each other via a service ( Here is my jsFiddle: http://jsfiddle.net/GeorgiAngelov/a9WLr/1/).
The idea:
The idea is that ...
0
votes
0answers
36 views
How to sort by object properties in an ng-repeat? [duplicate]
My aim is to use the orderBy filter on an ng-repeat which iterates over dictionaries (and not values), e.g. given the following data structure:
$scope.cats = [
{
name: 'whiskers',
...
0
votes
1answer
32 views
How do I format a PHP array for use with AngularJS' ng-repeat directive?
I have a table that I want to populate using ng-repeat. I'm having trouble figuring out how to format my array so that it works. Here is what I have so far:
PHP (customers.php):
$customer_array = ...
0
votes
1answer
48 views
Custom Filter and LimitTo options with Custom ng-repeat directive
I have the following code where I have a nested ng-repeat and also uses filter and limitTo options in the inner ng-repeat
http://jsfiddle.net/WqSGR/27/
Here I have very less items in my set. But in ...
0
votes
1answer
71 views
AngularJS - ng-click does not remove previous click's modifications when clicked again
So I am trying to acomplish this example: http://jsfiddle.net/pkozlowski_opensource/WXJ3p/15/
However, for some reason, when I click on one div, and then on another, it does not remove the "active" ...
0
votes
1answer
37 views
ng-repeat inputs losing function losing focus
http://plnkr.co/edit/g89wEeG30sOXhgzHWX0Z?p=preview
I've been reading about this and the consensus seems to be that this issue when binding to primitives was resolved in 1.1.2*, yet my problem ...
0
votes
2answers
29 views
Can't access ng-repeat's variable from a directive inside it
So I have this in my view:
<tr ng-repeat="currentRow in rowsToRender">
<td>{{currentRow[0]}}</td>
<div rmx-schedule-row time="currentRow" time-from="{{currentRow[0]}}" ...
0
votes
1answer
56 views
All checkboxes get checked when one is checked (should be just the one checked) - inputs generated with angular js
I am making app with angular js. It goes like this.
User creates groups and adds group names
User creates 'websites' and for each website he can check groups that are created in previous step
...
0
votes
1answer
41 views
Angularjs strange behaviour of a modal directive inside ng-repeat
I have a list of items I want to edit using a modal window.
I built a directive to open a modal window when I click on the "edit" button of each item, passing the item itself to the modal ( with a ...
2
votes
2answers
31 views
How does the expression in ng-repeat work?
I'm trying to figure out how to loop through an array of objects, with ng-repeat.
I've got a factory set up like this, with three sets data in it:
mainApp.factory("dashboardContent", function() {
...
0
votes
0answers
43 views
angularjs tooltip within ng-repeat causes multiple evaluation of expression
I've built a table with angular's ng-repeat directives. So there are a set of nested loops. Then, for each cell in the table I enable a popover like so:
<td ng-repeat="col in columns">
...
0
votes
2answers
36 views
AngularJS - Different template in directive
I have a form based on twitter bootstrap, each field have it's own configuration
// controller (the template shows this in ng-repeat
$scope.fields = [{name:"f1", label:"Field 1", with_button: ...
0
votes
1answer
40 views
Keeping thumbnails aligned in Twitter Bootstrap using AngularJS?
As can be seen from the various questions on stackoverflow, Twitter Bootstrap doesn't properly align thumbnails.
How I solve this previously in Python, was similar to this PHP solution; using a ...
0
votes
0answers
46 views
Why slice() is showing error but code run perfectly?
I have written this code in js (developer.js) file.
app.filter('reverse', function() {
return function(items) {
return items.slice().reverse();
};
});
now, this code i put because i needed to ...
0
votes
1answer
35 views
Angularjs: ng-repeat + ng-switch-when != expected
The following code doesn't seem to work correctly:
<div ng-switch on="current">
<div ng-repeat="solution in solutions" ng-switch-when="{{solution.title}}">
...
0
votes
0answers
51 views
Angularjs - how to access an ng-include template's data to modify it through another template within the same controller
What I am trying to acomplish is to have two different templates within my app: one is generated through ng-repeat like so:
<div ng-repeat="data in tree" ...
0
votes
1answer
42 views
AngularStrap Checkbox button ng-repeat Object selection not reflected
I am using AngularStrap checkbox button where checkbox items come from server. So, I am trying to use ng-repeat, but I am not able to see the values of the item selected. Please see the plunker ...
0
votes
1answer
15 views
Nested ng-repeat on data of uneven depth
In angular js I am trying to build my site navigation via a controller. In the navigation menu, some menus have submenus and some don't. Here is a simplified version of my nav controller.
function ...
0
votes
1answer
23 views
Adding elements to accordion headings with angular
In the angular application I'm working on, I need to display some data with an accordion and add a button or some other kind of marker to each heading.
Here's an example of what I'm after using the ...
0
votes
1answer
28 views
Dynamic object properties within a nested AngularJS repeat statement
I have a repeater within a repeater, like so:
<div ng-repeat='x in collection1'>
<div ng-repeat='y in collection2'>
</div>
</div>
What I'm trying to do is access ...
0
votes
1answer
31 views
Angular ng-Repeat on Table
I refuse to believe that this is the only way to get what I want. If so this defeats the ease of the ng-repeat. I am pulling from a JSON string and I want to build a simple table. Here is what I ...
0
votes
3answers
72 views
Directive on same element as ng-repeat, need ng-repeat to run first and use its value
I'm trying to hook up the video.js library into my app. On one part of the app, users have the ability to upload files which may contain videos, so when output, I am using an ng-repeat to loop through ...
3
votes
0answers
127 views
AngularJS Outer ng-repeat not to register watches on inner ng-repeat
This is in relation with my question - Angular JS consumes more browser memory
My problem here is I need nested ng-repeats and the nested ng-repeats consumes more memory because of more watches being ...
0
votes
0answers
23 views
How to access pre-rendered ID of parents in a directive, to be used in an ng-repeat?
I am trying to use the ID of the parent of a directive 'slider' in order to iterate through an array ranges[ID], but that ID is rendered before the directive.
These are the parents:
...
2
votes
1answer
54 views
AngularJS “headers” in ng-repeat
I have a problem that's cropped up in more cases than one lately, and I'm wondering the best way to go about this. To state it simply:
I have data being displayed in an ng-repeat, sorted by a ...
0
votes
2answers
70 views
angularjs remove Selected Items using splice Function
i was looking for a solution to remove items from the Grid thats why i posted the question before and i got the solution from someone, at that time, i thought it solved the issue, but it was using ...
0
votes
0answers
79 views
Fixed header table in AngularJS
I'm stuck with a problem of fixed header table. I'm using AngularJS & Bootstrap to build a web application. I can't use ng-grid as it don't support IE7. So, I'm populating the table rows by ...
1
vote
1answer
59 views
Angularjs, Applying Action on Selected Checkboxes in Table
Im trying to Learn AngularJS and im implementing this Checkboxes that when i some checkboxes from the Grid and click the Remove Button then the Data from Table Should Be removed of Selected ...
1
vote
2answers
69 views
ng-repeat not updating using $scope.$watch
I need some help in displaying the results of an update in my ng-repeat directive from $watch
ProductsCtrl is watching for a change of product type and when it detects one it searches for Products ...
2
votes
1answer
86 views
How to improve performance of ngRepeat over a huge dataset (angular.js)?
I have a huge dataset of several thousand rows with around 10 fields each, about 2MBs of data. I need to display it in the browser. Most straightforward approach (fetch data, put it into $scope, let ...
0
votes
0answers
41 views
Collapse a list of ng-repeat
I'm attempting to use ui-bootstrap's collapse on an ng-repeat list of items. I've added ui.bootstrap to my module, and worked out this html:
<div class="title">Things <a class="collapse" ...