0
votes
0answers
19 views

AngularJS custom comparator , can it work with arrays?

I've decided to avoid writing custom filter or use method on $scope and go for using standard filter practice. <div ng-repeat="cr in data | filter: {blah: some_bound_data}:catf "> Assuming cr ...
0
votes
1answer
22 views

AngularJS - upload and display image using ng-repeat and jQuery

I'm trying to upload and display image inside ng-repeat. I've succeeded to upload and display image without ng-repeat using jquery function: <html> <head> <script ...
0
votes
1answer
19 views

AngularJS dynamic Tables and ng-repeat

I am trying to answer my own unanswered question but stuck with some weird results of my code that I can't figure out. When I generate the whole table by entering common heights and floor numbers and ...
-1
votes
2answers
23 views

AngularJS ngRepeat loop variables

I have the following code: $scope.links = { home: {text:'Home', link:'#'}, about: {text:'Contact', link:'#'}, handeMade: {text:'Contact', link:'#'}, ...
0
votes
0answers
18 views

angularjs update template var in ng-repeat

I have a question: This is my code: <div ng-repeat="post in posts"> <span> <a ng-show="(post.like_ids.indexOf(current_auth_f.uid) <= -1)" ng-click="like_f(post.id, ...
0
votes
0answers
19 views

How can I create a ng-model with a collection from a dynamic created HTML code

How can I create a model in the scope to represent the data from from a dynamic created table(form) with MVC and Angular. In this code I am creating the table with a model from MVC. Each row has a ...
0
votes
0answers
35 views

Dynamic list update ng-repeat

I am trying to use ng-repeat in a table and sort of forms a folder tree structure. So, when I click particular row and depending on specific value I update the value after calling the function via ...
0
votes
4answers
30 views

Angularjs: ng-repeat with different html tags

Say one have a list of multiple type of data defined in a controller as follows: $scope.list = [ {text: "Remember BASIC?"}, {code: "10 a = a+1"}, // many additional lines… ]; Which we ...
0
votes
2answers
47 views

AngularJS multiple radio options

Good afternoon, We are currently trying to learn AngularJS and although we're picking up some pretty cool codes we can't seem to figure this issue out. We are wanting to display a list of product ...
1
vote
1answer
19 views

AngularJS: nested ng-repeat (array in object) only works if there is one item in array, not when multiple

Okay, I have a weird issue. I have an array of objects. Each object contains another array (of strings). I loop over the array of objects using ng-repeat. Within the repeated code I ng-repeat over the ...
0
votes
1answer
22 views

angular result and pagination doesnt get updated on filter

I have this angular app, where I display a table based on the records, with filters, but the problem is when I eneter a value in filter the records get filter but after removing filter value, it ...
1
vote
1answer
21 views

Using value of complex ng-model in controller from template

I have input box inside a loop in HTML : <div ng-repeat="line in list.performance_recommendations"> <label>{{line.template.message}} <input class="k-textbox" ...
0
votes
1answer
31 views

AngularJS ng-repeat — declarative filters vs. imperative filters

When I should use declarative style and when imperative in Angular filters? For example, I want to orderBy and limitTo some array of objects in ng-repeat. In which cases it is better to use ...
0
votes
1answer
26 views

Inserting commas dynamically to a list inside the view, angular js

I've got some html that looks like this columns = [<span ng-repeat-start= "col in colsList">"{{col}}"</span><span ng-repeat-end></span>] Which is giving me nearly the ...
0
votes
0answers
29 views

Angular UI Bootstrap Slider Multiple items per slide

I am connecting to a web service and want to populate A UI Bootstrap carousel with 4 items for each slide. I am using | limitTo:4, but I need a way to limit 4 per slide out of the 10 total. Here is ...
1
vote
3answers
20 views

Determining how many results are shown by ng-repeat filter

If I use ng-repeat with filter, how can I determine how many elements are filtered out (or vice versa, how many are shown)? Specifically, I would like to create a search bar that creates the filter, ...
0
votes
1answer
35 views

ng-repeat, do not update table after data was updated?

I have a table that is populating with ng-repeat, and I also have navigation button that change table data. Before I had custom filter on the data in html file, like so: ng-repeat="car in carList | ...
0
votes
1answer
35 views

AngularJS - ng-repeat horizontally x number of times, then new line

I am trying to perform a simple ng-repeat on an <li>. In the past, i have created vertical ng-repeat. I am now trying to create a horizontal one, however, one that displays 4 items, then starts ...
1
vote
1answer
32 views

Angularjs bindings not being updated

I am facing a problem with my angular js bindings not being updated correctly. I am trying to achieve a way to hide certain form elements and show others by clicking a "next" button. I have setup ...
0
votes
2answers
18 views

Angular $resource - Data not being returned

I am quite beginner level with both JS and Angular, and I am trying to return data from an API and store it in $scope. Once I've stored it, I want to loop over each item and output it into the page, ...
0
votes
0answers
29 views

AngularJS filtering by object prototype function

I would like to filter an ng-repeat using a function defined on the repeat item's prototype, but I can't find any reference saying whether this is actually possible. Something like <div ...
2
votes
1answer
41 views

AngularJs Directive to add Attributes, the events are not triggered

Good morning everybody, I'm a bit stuck on this directive, what I want is to receive a JSON string from the getProperties function like: {"class":"someclass","ng-change":"someChange()",ng-click": ...
0
votes
1answer
31 views

pagination does'nt get updated on search

Html Code: This is the html code that basically showas a table with search filter. . . <input type="search" ng-model="search.$" /> <table class="table table-striped table-bordered"> ...
0
votes
2answers
43 views

Angular search filter doesnt search in entire table

This is my html code: <input type="text" placeholder="Search By Any..." ng-model="search.$"/> <table dir="ltr" width="477" border="1" class="table table-striped ...
3
votes
1answer
40 views

Advanced structuring: Surrounding ngRepeated items Angular.js

You have an array of objects you're iterating over, How would you surround every (x) elements with (element)? If your goal is: to have an (element) surrounding every 4 ng-repeated elements? ...
0
votes
1answer
61 views

How to set a boolean flag to collapse/expand a row with ng-repeat

I have this plunker code. What I'm trying to do, is to display the gray box one time per row. To achieve this, I thought to modify the partition filter in order to return a JSON to add it a new ...
1
vote
2answers
48 views

Group item detail using AngularJs ng-repeat

I would like to perform a group by function inside of an ng-repeat Given the following data: var items = []; items.push({ id: 1, widgetId: 54, colorId: 45 }); items.push({ id: 2, widgetId: 54, ...
0
votes
1answer
11 views

Iterating through an Array with Controller As Syntax -AngularJS

I am currently have trouble displaying my array using the "Controller as" syntax if I pass the $scope in to my controller it works fine but using the "Controller as" syntax and this. My array does not ...
0
votes
1answer
21 views

In AngularJS, the data is showing up only in ng-repeat

I've got the following getUserData.js: var App = angular.module('App', []); App.controller('UserdataController', function($scope, $http) { $http.get('data/getUserData.php') ...
0
votes
0answers
23 views

Select multiple fields / Bind Subset of object to model

Assuming we have the following object structure: { id: 1, name: 'name', description: 'test' } We can select an object from a drop down using the following code: ng-options="item as item.name for ...
0
votes
0answers
42 views

AngularJS - Conditional filter in ng-repeat

This is my code: <div ng-repeat="cat in categs | filter:searchText"> <div><h1 id="{{cat.id}}">{{cat.title}}</h1></div> <table> <tbody> ...
0
votes
2answers
39 views

using push function in angular js

i am trying to make a eCommerce shop with angular and code is as follow var shopApp = angular.module('shopApp', ["slugifier"], function() {}); controllers.productController = ...
-1
votes
1answer
27 views

NgModel Inside NgRepeat with Angular Bootstrap DualListbox

As the title of my question implies, I am using Angular Bootstrap DualListbox inside an NgRepeat, but am not having any luck getting the NgModel to work properly. Let me try to mock up what I'm doing ...
0
votes
0answers
63 views

Angular JS complex Table form creation

I need some expert hands in this problem. I want to create a dynamic table where user can add rows and columns. this is the desired end output: I already managed to add floors both in quick way ...
0
votes
0answers
21 views

Invalidating form with contenteditable doesn't work

I have a situation where I have a table formed by use of ng-repeat, and for each of the table elements, I require the user to be able to edit the values, and for those values to be checked for ...
0
votes
2answers
34 views

AngularJS: Unable to reload/refresh view from controller

How do i refresh angularjs view from controller once the array/list is updated? Following is my code: <div class="main-page" ng-app="GoalsListing1"> <div ...
0
votes
3answers
52 views

Angulajs filter on array of object

I have this json object. var UsersList=[ { "User" : { "IdUser" : "admin", "FirstName" : "mirco", "LastName" : "sabatino" } }, { "User" : ...
0
votes
0answers
15 views

JQuery file not loading on page with ng-repeat

I am building a real estate listings page for a client of mine with ng-repeat from a json data file that holds all his listings data. On each listing I created a 3 field form so I can tap into a ...
1
vote
2answers
30 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
32 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
41 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
23 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
22 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
1answer
25 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
47 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
15 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
19 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
31 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 ...
1
vote
1answer
40 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
34 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 ...