Tagged Questions
0
votes
2answers
51 views
Filter not working ng-repeat
I'm using Salvattore (masonry like grid) in my angular app but the filter option in ng-repeat does not work.
I think it's because Salvattore wraps each repeated item in a separate div to make a grid (...
0
votes
1answer
29 views
Angular ng-repeat refresh from WebApi2 response.data
I have created an angular function where a get data from from a WebApi.
This function get data in json format with an $http.get call.
Then I receive data from into response.data object.
...
0
votes
1answer
19 views
Salvattore grid stopped working after adding angularjs
When I added angularjs to my project, Salvattore grid stopped working, it's not rendering.
I want to use ng-repeat functionality to loop through all the items and display them in Salvattore grid.
...
0
votes
2answers
42 views
How to add multiple ng-repeats inside a nd-repeat?
Okay, I'm working with a bit of a challenging grid here and need some help.
I need to find a way to populate the data by ng-repeat. I'll attach an image of the grid layout of what I'm trying to ...
0
votes
1answer
41 views
Setting ng-model dynamically inside ng-repeat with radio button not working, when same with input type=“number” working properly
I am using ng-repeat where I have to put ng-model in dynamic way. Code is as follow;
<div class="panel panel-default" ng-repeat="(key, value) in $parent.shared.sourceSchema">
<div class="...
-1
votes
1answer
46 views
How to ng-repeat element's attribute?
I'm using an external script to rotate thumbnails (http://sladex.org/images-rotation/).
<div ng-repeat="entry in entries">
<div class="thumbs rotation"
data-images="['{{entry....
0
votes
6answers
44 views
How can i string value bind in ng-repeat in angularJS
here is my code,
$scope.records = "test,Test1,Test2,test3,test4";
i want to bind this value in li tag with ng-repeat.need ouput like as
.test
.Test1
.Test2
.Test3
.Test4
0
votes
0answers
16 views
Scope variable is not getting mapped into drop down even though html shows selected='selected'
This is the desired output i was trying but instead i am getting blank value
My Scope Variable returns the below one:-
$scope.divText = getSavedData;
console.log($scope.divText); // Criterion: ...
0
votes
0answers
35 views
Angular Select Box with ngRepeat
I have select drop downs and checkboxes that are inside an ngRepeat which are populated by a locally stored array of JSON objects. I change the contents of the array through a pop-up modal and can ...
-3
votes
2answers
42 views
angularjs ng-repeat array index
How to print (based on array index) all array value?
At the moment, it print all the values.
<table>
<thead>
<tr>
<td>Name</td>
<td&...
0
votes
3answers
33 views
Divide Materialize row into half using ng-repeat
I am creating dynamic forms with angularjs . I have a json structure like this
$scope.steps = [
{
stepNo: 1,
schema:
{
fields: [
{ ...
0
votes
1answer
27 views
Angular and Firebase - How to only display items under one node
Currently, I have a firebase structure that lists projects with items under each project. Currently, the code below displays all the projects. Now when I click on a project it links to the items page. ...
0
votes
1answer
31 views
Inspect all items on ng-repeat
If the first prematchGame has 1 and 2 value ,after that add header , but in this case i have some issue ,,,first element hasn't 1 and 2 value , but 3th and 4th has it . (see on image)
How can i ...
0
votes
3answers
31 views
AngularJS: Apply a CSS class on the first element with ng-repeat
I am looking for the first index the passes through my ng-if condition which is not always $index === 0, and cant be solved using $first.
Here's my code sample:
<div class="ticket-event" ng-if="!...
0
votes
2answers
34 views
Unable to pass dynamic form inputs to the controller function
I want a form to be created dynamically with three inputs each time a new data item is found. Whenever the end user clicks on a particular checkbox the selected field name, other input values ...
0
votes
0answers
12 views
Google Analytics how to track search word with Angular filter by search key
I am using ng-repreat to display a number of posts on my site and I also allow users to filter the posts by keying in any search phrase in a search input box. It is working fine but I don't know how ...
1
vote
2answers
40 views
Angular js is not printing the data of ng-init using ng-repeat
I am a newbie and i am trying few angular js examples but when create 2 div elements and try to run the angular js program for it. the initialized array is getting printed for the second div and it is ...
0
votes
3answers
23 views
Calculation in angular expression
I have a situation where I return a dollar amount and a discount percentage from an API for a number of products. I have an ng-repeat, where nn the UI, I want to show a discounted amount.
Something ...
0
votes
1answer
22 views
set ng-model to property of ng-repeat?
I have select-box in my view where you can select a worker.
<select ng-model="search.wrk_worker_id">
<option ng-repeat="w in workers.message">{{w.wrk_forename}}</option>
</...
0
votes
2answers
39 views
How do you use ng-repeat with a directive/template?
I'm trying to use ng-repeat to iterate over an array I've defined. This would write out a custom Element, which has a Directive/template to replace it's HTML.
When I don't use ng-repeat, the custom ...
0
votes
1answer
31 views
How to pass values of input elements of the html form created dynamically using ng-repeat to the ng-controller
I designed a form like below.
<form id="123">
<div ng-repeat="x in data" class="[ form-group form-inline ]">
<input class="form-control input-md" type="checkbox" id="{{x.name}}"...
1
vote
2answers
15 views
Switch Button Not Working From API Handling
I have a problem. I made switch button based on API. Just change "on"/"off" in my view. But When I clicked button "off", my button changed to "on" but when i clicked "on" its not working. And then ...
1
vote
1answer
56 views
How to do ng-repeat in ng-repeat?
I have problem with nesting ng-repeat. I'm new to AngularJS so maybe I don't understand the concept.
I need to show GROUPS and in it I need to show ITEMS which have GROUP_ID like GROUP.
I know how ...
0
votes
1answer
30 views
How to work on ng-show for particular index in ng-repeat
HTML:
<div class="displayImgData col-sm-3" ng-repeat="item in profileData" >
<a ng-show="onLoadFav" title="Make as Favourite">
<img class="styleright" ...
0
votes
3answers
33 views
angularjs: how to store the function returning value in one variable . based on ng-repeat
hi i am getting the intrestedid from ng-repeat , i want to call another service and store that data in one variable dynamically , because need send seperate api for getting images.
my html is look ...
-4
votes
2answers
54 views
ng-repeat nested HTML elements
I like to use ng-repeat to print data to my html using Angularjs, i have to use unique and orderBy to avoid equals in year and month.
My data:
demo.data =
[
{ "year": 2016, "month": "...
-2
votes
1answer
33 views
Angular: Not able to display data from firebase [closed]
Trying to create a simple todo application from a tutorial. I'm trying to use ng-repeat for displaying values from firebase into a table. Not able to retrieve the values for "todo.activity" and "todo....
0
votes
1answer
22 views
Reloading ng-repeat renders the new list before removing the old list
I need to measure the width of the UL that contains LI's with an ng-repeat
the first time it works great. however when reloading the data the width comes in as double the real width I believe it is ...
0
votes
0answers
26 views
How to filter list displayed through ng-repeat with muliple fields using checkboxes
I have a JSON like below:
var data = [
{
"id": 1,
"name"; "Test1",
"isPending": "false",
"isCompleted": "true",
"isRequired": "true",
"location": [
{
"city": "London",
},
...
0
votes
3answers
38 views
angularjs ng-table/ng-repeat rows not loading
I am trying to follow the tutorial Here on using ng-Table. If I download the whole example from Git then it loads fine but trying to follow even the simplest example myself then the Column headers and ...
1
vote
1answer
65 views
ngClick with parameter does not pass the parameter
I got a treelike table with two ng-repeats.
<table>
<tr ng-repeat-start="am in anArray">
<td><button ng-click="TheFunction(am)"></button></td>
</tr>
<tr ...
0
votes
2answers
31 views
How to iterate over two sets of data and match values in angularjs
What would be the most efficient way to iterate over a data set like this in angular to get a count of how many people are in each city?
app.factory('Person', function($resource) {
return $resource(...
1
vote
1answer
62 views
Retrieving a combined result from a drop down but from two different Angular array
I am having an issue here and need some direction. I have a drop down where I choose my selection and it will pull up a matching result from two different Angular data. For example, I have two ...
1
vote
2answers
55 views
How to call multiple angularjs service calls from within nested ng-repeat
I am making a simple sports goods shopping app in AngularJs.
I am in a situation where I have three nested ng-repeats.
First loop: Get the brand name. I have written angularjs service that calls the ...
0
votes
0answers
33 views
Angular js ng-repeat with complex elements
I understand this a little open ended question I am trying to understand how to go investigate performance issue described below.
Scenario:
I have a list with around 30-40 elements and each element ...
0
votes
1answer
22 views
Render table rows without binding for performance
I'm using Angular 1.4. It's commonly known that ng-repeat can have some performance issues when rendering a large number of rows for things like tables. But I was wondering if there was an optimal way ...
0
votes
3answers
38 views
Pushing input values from ng-repeat into array with AngularJS
I have a ng-repeat displaying a list of products with an input each.
I want to be able to push the value of each input together with a parameter from every item into a new array to create an order.
...
1
vote
3answers
51 views
ng-repeat doesn't work when HTML is altered under $compile
Directive code:
.directive('replace', function($compile) {
return function (scope, element) {
element.html(element.html().replace("Hej", "Hey!"));
$compile(element.contents())(...
2
votes
2answers
49 views
Handing ng-repeat and ng-if for dynamic datas from server
I have a social media icons where I enable(turns reds color) like button only if my item.like== 1or it wont be highlighted (will be in white color)when item.userid==0. I am doing this dynamically.so I ...
0
votes
3answers
25 views
ng repeat variable number of table rows
I know how to use ng-repeat to create a variable number of table cells, but how do you do this with table rows? I'm trying to create a jeopardy style game where the number of table rows should equal ...
0
votes
2answers
53 views
Select multiple display names instead of IDs using AngularJS
I have a multiple select like this :
<select ng-model="listProds" multiple>
<option value="10">product 1</option>
<option value="25">product 2</option>
<option ...
1
vote
1answer
24 views
angularjs get another property of the selected ng-repeat option to pass into another model
I have a list of users, and I do an ng-repeat on the list as seen below.
I pass the id of the user to the model, however, I am trying to pass the same selected user's email to another model like:
&...
0
votes
0answers
27 views
separate angular modal scope from $rootscope to avoid triggering digest when editing a single item
I have a pretty complex app for collaborative and interactive database creation and have run into performance issues. The app uses ui-router with various nested views... The states look like this:
$...
0
votes
0answers
30 views
How to properly execute a function inside ng-repeat and perform AngularJS service calls within each nested ng-repeat
I am making a simple sports goods shopping app in AngularJs.
I am in a situation where I have three nested ng-repeats.
First loop: Get the brand name. I have written angularjs service that calls ...
1
vote
1answer
29 views
I'm not seeing ng-repeat data on browser Angular js
For some reason I'm not visualizing data in the browser.
Here a pic of my console:
Inside p tag I am expecting to see retrieved data.
Here is the view:
<div class="row" ng-repeat="voce in ...
0
votes
1answer
19 views
Add new Row in editable state
I have a simple repeater in which each row can be edited in-line. As part of that repeater, when I add a new row I would like it to be in the editable state, not static. When I tried adding the $scope....
1
vote
2answers
43 views
Getting Firebase Snapshot as array and set to scope
I am trying to return the results of a Firebase snapshot as an array so that I can ng-repeat through them (by default it returned objects) The last line is where I try to set the objects in an array ...
0
votes
1answer
36 views
AngularJS filter ng-repeat not updating all columns
Following is the ng-repeat markup:
<tbody>
<tr ng-repeat=
"(k, v) in loanapps | filter:SelectedStatus | filter:SelectedBorrower track by $index">
<td>{{v.Id}}</td>
...
0
votes
2answers
48 views
Angular 1: ng-repeat throws infdig error
Controller:
(function(angular) {
var app = angular.module('t2w');
app.factory('httpq', function($http, $q) {
return {
get: function() {
var deferred = $q....