1
vote
2answers
19 views

Angular table directive

I want to make table directive, but i'm not sure how to do it. Here is my source code. Directive: InterfaceModule.directive('gList', function() { return { restrict: 'AEC', ...
-1
votes
1answer
24 views

Reload ng-repeat, with new data

I have a service, where I just return a list with all the available videos, which is then injected in a controller, so I can do a ng-repeat to list those videos. Just like so ...
0
votes
2answers
33 views

More than 2000 watches in AngularJS Page?

I would like to know is it possible to create data table with about 300 columns and 300 rows and all cells will be editable so I need to have two way data binding. All I have seen on web is that if ...
0
votes
1answer
13 views

Submit and disable all buttons in an ng-repeat without adding a new property on the scope

I have a list of items where each item is clickable and should trigger the submit(id) function. I would like to disable all items (buttons) when one of them is clicked. <ul> <li ...
0
votes
1answer
11 views

angular getting attribute value and cannot find a proper way

I have this in my dom <div id=“my-lightbox-container" style="height: 0px;”> <div id=“my-lightbox" role="dialog" style="width: 660px; height: 342px;”> <button id=“my-close" ...
0
votes
0answers
14 views

AngularJS orderBy date filter not working using Firebase

I'm using Firebase to store my data and I am aware that Firebase stores data as objects and not arrays. I have fixed that problem and have other filters working, but when I try to use "orderBy: ...
0
votes
1answer
32 views

Unique identifiers in dynamic form (ng-repeat)

I have a form with input texts that are looped in a ng-repeat. For every input field there is a switch with which the user sets "Use default value" to YES/NO. Every row of input fields are basically ...
0
votes
1answer
11 views

Filter ng-repeat items based on numeric conditional

Trying to use a select menu to filter items based on greater than/less than conditional. HTML: <select name="likes-filter" id="likes-filter" class="form-control" ...
0
votes
3answers
13 views

AngularJS accessing the scope object property inside ngRepeat

I am trying to create a div with content based on the ngRepeat item and a javascript object. My controller code looks like this, 'use strict'; angular.module('proParApp') .controller('MainCtrl', ...
0
votes
1answer
30 views

Incrementing in angular

I have json in my controller (will be moved) that is basically: id, questionName, answer. I want to show each question in the code below. One question at a time. Upon clicking on the A links for ...
2
votes
1answer
29 views

$watch 2 ng-repeat instances

I have 2 ng-repeats in my code, and i would like to call a function when both of these ng-repeats have completed their loop. It's actually the same repeat twice but with a different filter applied. I ...
0
votes
1answer
32 views

How to reload angularjs scope data without rerendering bound view

I've got a small problem. I have a bootstrap tabset within an angularjs app. The tabs are partially generated from ng-repeat and contain data, that is bound to the scope. Basically, within the ...
1
vote
0answers
41 views

angular js to map very large amount of data

I have to map and display like 5000-6000 amount of data. I receive a set of IDs from first call and than based on that call a second one to get the displayable name passing the IDs. My service looks ...
1
vote
0answers
8 views

Angular ui-sortable + angular-gridster

I'm trying to combine the functionality of ui-sortable and angular-gridster so that I can pull an item from a list and drop it into a rearrangeable grid. ui-sortable and angular-gridster have the same ...
1
vote
1answer
26 views

Storing $index value of dynamically added inputs

Plunker here: http://plnkr.co/edit/sm3r4waKZkhd6Wvh0JdB?p=preview I have a set of form elements which can be added and removed dynamically by the user. I would like to know how I could also include ...
0
votes
3answers
18 views

AngularJS orderby filter without live update

I have a AngularJS project with a list of checkbox items .. I want all the selected checkbox at the top on "load"(init), but when I use a orderBy filter it will do the orderBy live - how can I prevent ...
-1
votes
0answers
41 views

Cannot access Json object with ng-repeat?

I have a JsonResult method that returns an array of json data. Example data returned from JsonResult (asp.net) : [{"id":2, "title":"Stuff stuff stuff", "content":"Blah blah blah"},{"id":1, ...
0
votes
0answers
11 views

Linking to a specific position on one page from a different page based on a json array variable

I am re-developing a clients site using AngularJs and since they list businesses for sale, I've placed all their data in a json file, then populated a page with ng-repeat. Everything works great, but ...
0
votes
0answers
29 views

Reversing $index when listing items in reversed order

I stumpled upon this post about how to reverse the display of an array, which is working fine when I try to do it. angular ng-repeat in reverse However...then itmes I'm listing are editable and when ...
0
votes
1answer
44 views

“ng-repeat” inside a “ui-view” causes a “TypeError: Cannot read property 'insertBefore' of null” exception [AngularJS]

I am trying to have a part of a parent's view change as the user descends into one of the parent's sub-states. The following is a short code snippet to demonstrate my intention and the resulting ...
-1
votes
2answers
33 views

Angularjs: how to make directive interpolate trying while processing?

While repeating thru angulajs collection, the photos directive does not interpolate inner loop (see code as follows): <tr ng-repeat="typology in accident.popover.typology"> ...
0
votes
1answer
27 views

How do I target just one instance of a nested repeat?

This is probably pretty basic, but I'm going round in circles. I have a nested controller in a ng-repeat - I would like to trigger an event in an instance of the repeat that will affect only the ...
0
votes
0answers
51 views

Interpolation error with multiple ng-repeat

I get an interpolation error but only sometimes. I refresh/load page a few hundred times without error or sometimes on first load it appears and shows up again after reloading/empyting cache etc. I ...
1
vote
1answer
20 views

ngRepeat orderBy update after ngModel is updated

I have a list of text fields with a button below it. I can add text fields to that list dynamically with AngularJS. The text field by default has an empty value. But I want to order the position of ...
0
votes
1answer
20 views

AngularJS matching filters exactly and not part

<li class="column__list--item" ng-repeat="skill in skills | filter: { skillset_id: filterbySkillset }"> I've noticed that when I try filter using the above, it filters anything it ...
0
votes
1answer
24 views

Directive scope got undefined

I get an issue with passing data to angular directives inside ng-repeat, it always got undefined. Here are my code The Controller: angular.module('module').controller('ModuleController', ['$scope', ...
0
votes
1answer
15 views

Dinamically added radio inputs does not trigger ng-show

Okay guys, here is my problem: I have to make list of categories which show only elements of that category when selected ( and hide rest ). I have decided to go with radio buttons / every category ...
0
votes
2answers
47 views

Conditionally add a class to dynamically generated fields

I'm making some sort of validation using ng-class directive, but there's a problem when starting to deal with ng-repeat created elements. <div class="traveler" ng-repeat="i in ...
0
votes
1answer
36 views

AngularJS - Is it possible to show data in a specific time range?

hope someone can help me with this question. I have an entity which contains a start time (let's say 15 o'clock) and an end time (let's say 16 o'clock). It also contains the date (let's say ...
0
votes
1answer
16 views

Angular record the order of checkboxes as clicked

I am trying to add the functionality in my angular application to record the order of the checkboxes as they are clicked and hence show them in same order as they were clicked. Here is the snippet: ...
0
votes
2answers
28 views

Infinite scroll for angular js

Hi for infinite scroll i have written a piece of code in javascript which detects the end of the window $(window).scroll(function(){ if ($(window).scrollTop() == $(document).height() - ...
1
vote
3answers
40 views

AngularJS filter with integer comparison

so I have a "price" field on my site made using JQuery-UI slider. This field consists of 2 integer values: minPrice, and maxPrice. Assume I have an array of objects that looks like this: objarr=[ { ...
0
votes
0answers
15 views

ng-repeat working off kendo DataSource not updating correctly

I have an Angular App that uses Kendo some Kendo components and I'm having trouble with ng-repeat on a kendo dataSource object. These objects from the DataSource get injected into a Directive that ...
0
votes
2answers
23 views

Temporary ng-model?

I have a table that displays SQL data. I'm trying to only allow the user to edit an entry within a row if that value already exists somewhere in that column. For example, if I tried to change the ...
0
votes
1answer
17 views

How do I add markers to a Google Map?

I am trying to have an input field that when submitted adds a marker to my Google Map. Right now when I submit the field it is creating the object but the marker is not being displayed. Right now I ...
0
votes
2answers
49 views

Change scope values in the view

I'm learning AngularJS and I have a question. Here is my code: HTML (view): ... <table> <tr ng-repeat="student in students"> <td ng-class="{'student-highlight' : ...
0
votes
1answer
23 views

Dropdown Rows with AngularJS

I have a following table of grouped items: I want to display each item in dropdown rows under particular group. Would you mind to help how to make this with Angular JS? I'm fetching all groups and ...
2
votes
1answer
38 views

How do I use ng-filter without changing $index on ng-repeat?

Currently if I filter, the $index also updates. So if there are 500 results, and I filter the ranking, also updates. How do I have an index column that doesn't update? Here's my code: <input ...
0
votes
1answer
27 views

Update images created by ng-repeat using directive

I use sockte.io to get my data from the server, and depends of the data(item.text) I have to change the images. I tried to acces to the DOM and modify the image using a Directive but no luck. This my ...
-1
votes
2answers
27 views

Angular.js - Nested JSON scope with Angular

{ "imports": { "imported": [ { "date": "19/9/2014", "item": [ { "sn": "3366698", "type": "Food", "weight": "10tn." ...
2
votes
2answers
32 views

ng-repeat over a non-array/object / dealing with arrays and non-arrays the same way

Often times I want to deal with both arrays and single objects in the same fashion. For example I have the property of an object that can either be an array or just a string (look at the scale ...
-2
votes
0answers
35 views

Angular JS infinite scroll

I want to create an infinite scroll. I get a Json of 50 posts at a time. I have to break it down and show 10 posts initially. The rest of the posts should be loaded on scroll in batches of 10. I have ...
1
vote
1answer
48 views

$scope not updating my view from controller

I have reached a total block and could really use some insight as to what I might be doing wrong here. I have search bar up top and a view area beneath it to load the different templates. When ...
1
vote
1answer
19 views

ng-init miscalculates aliased index after array.splice

I have encountered a strange behavior related to ng-init, any help would be appreciated. I have a model object which has a flats property that is an array of flat objects. Each flat object has rooms ...
0
votes
1answer
24 views

Show multiple trs with multiple tds using custom partition

I am loading my items into table with multiple rows and multiple td. I have used partition custom filter from this link This is my FIDDLE myApp.filter('partition', function() { var cache = {}; ...
0
votes
1answer
25 views

Angular using limitTo and Filter

I have a list of 2,000 elements, that I created with angular in the following way: <tr ng-repeat="elem in elements | limitTo:limitSize | filter:searchTerm | orderBy:predicate:reverse"> I ...
0
votes
2answers
43 views

form validation angularjs without submit button

I want validation of the form which do not have the submit button. <div ng-controller="UserCreationCtrl"> <form novalidate="novalidate" class="form-horizontal"> ...
6
votes
3answers
169 views

CSS3 Animation with AngularJS not sliding correctly in Firefox

I made a CSS3 animation connected to an ng-repeat which then shows an inline-list with Bootstrap3, I limited the number of maximum 3 of the list showing and I have some little issues with appears ...
0
votes
2answers
19 views

angularjs: directive and ng-repeat add extra div

I've got the directive as follows: app.directive("photos", function () { return { restrict: "E", replace: true, scope: { "photoid": "@", ...