Tagged Questions
0
votes
0answers
17 views
$event in in ng-repeat does not fire correctly every time
i have a list generated by ng-repeat lookgin like this:
<li ng-repeat='task in tasksList | filter: projectFilter' class="list-element">
<a id='task-{{$index}}' ng-click="taskDetails($...
0
votes
1answer
21 views
Filter grouped and nested ng-repeats with dropdown in angular
I've got the following:
vm.years = [{
year: number,
proevents: [{year: number, division: string, level: string, place: string, names: string}],
nonproevents: [{year: number, division: string,...
0
votes
1answer
13 views
Using ng-if inside ng-repeat with anguar field not working
I would like to show/hide each image in case equipment.state value,
in my case equipment.state is equal to 'true' or 'false' !
<div ng-repeat="equipment in listeequipements" class="list-group" &...
0
votes
1answer
20 views
Trying to sum up a number field in ng-repeat
I'm tying to sum up a number field to display a total in my angularjs project.
I'm trying to so something like this:
<div ng-repeat="item in donations">
{{item.product.cost * (item....
0
votes
1answer
16 views
Prev/Next Item button not working within Ng-Repeat
I'm trying to build a simple "pager" app that allows you page from one json object to the next.
When adding the prev/next navigation outside of the repeat, it works fine.
When I try adding it ...
0
votes
0answers
27 views
Pass values of ng-repeat outside it as parameters on button click
I have the following code structure where inside a modal-popup, I've populated rows of a table using ng-repeat. Now I want to pass the values of 3 columns of all the rows to the controller but I dont ...
0
votes
1answer
34 views
ng-repeat not rendering data from array
I am working on a web app where non-profit organizations can create a profile and be easily searchable by various parameters. In the "create and organization" form, I have a nested array where the ...
0
votes
0answers
22 views
while deleting a table row, the spinner shows on all rows in the ng-repeat instead of just the one being deleted
I have a table with a delete method attached to each row in an NG-REPEAT.
I pass the $index, the delete works, table updates perfectly except that the action indicator(spinner) shows on all the rows ...
0
votes
6answers
35 views
get data from array into datalist with ng-repeat
I already googled my problem but nothing really helped me.
I need an input field, which also works like a dropdown. So I can write my own data in the input field or select data from the dropdown. I ...
0
votes
1answer
27 views
AngularJS - Have a non-repeatable element within ng-repeat
This question is a little hard to explain so i will try with my actual code to show the example. I am using ng-repeat using the syntax "ng-repeat='a in achievements = ( | achievements entity is not ...
0
votes
0answers
19 views
Animate ng-repeat list: push down list when inserting new item at top of the list
I want to animate a list created using angularjs's ng-repeat. I want to insert a new item at the top of the list which will push down the existing list items. The effect I am looking for is exactly ...
1
vote
2answers
46 views
Angular ng-repeat on array inside an array of objects
I have problem accessing an array inside an array of objects in AngularJS.
HTML:
<li ng-repeat="ai in main.a2">
<div np-repeat="bi in ai.b">
<span ng-bind="bi"></span>...
2
votes
2answers
41 views
Randomizing an array inside a ng-Repeat
I have an array of object which I use ng-repeat to iterate over. However, every object has 2 properties - a country (string) and cities (array). How can I randomize this array of cities on some button ...
0
votes
2answers
59 views
ng-if (trying to implement if-else)
Please correct me if i am wrong, My understanding on ng-if directive was like if and else conditions if use multiple ng-if directives. So here in my code i am trying to show three divs
based on their ...
0
votes
3answers
29 views
ng-repeat or something similar on two arrays
I recently started learning angular js. I have following object ResultRow:
ResultRow = function ( cars, prices) { //cars and prices are arrays
this.prices = prices;
this.cars = cars;
...
0
votes
0answers
32 views
Angular js filter: notarray, list populated via ng-repeat
I have created a list with ng-repeat directive and would like to filter it with ng-options directive. However, no matter if filter is initialised in scope as an empty array or as an empty object, I ...
1
vote
1answer
26 views
How to use ng-if inside ng-repeat over array?
I have an array or colors = ['Red', 'White', 'Gold', 'Black'];
I was trying to do something like below code ..
<span ng-repeat="color in item.colorOptions" ng-init="color">
<lable ng-if=...
1
vote
3answers
40 views
ng-repeat not working AngularJS
Both the ng-repeat's are not working. But just showing {{ rows }} does work. So the communication between the template and the controller is working.
What's wrong with my ng-repeat?
I already ...
0
votes
0answers
32 views
How can I force `track by` usage in all `ng-repeat`?
What can be used to lint the angular html file, for example, make possible to force that developers to use track by in all ng-repeatin the whole project?
0
votes
2answers
55 views
how to pass select option value in angularjs
I have a below code snippet
HTML
<div ng-controller="MyCtrl">
<div ng-if="quan!=true">
<select ng-model="selectedItems" ng-init="selectedItems = selectedItems + ''">
<...
0
votes
0answers
26 views
angularjs ng-repeat binding for dynamic json
I'm trying to bind ng-repeat data to my html view, it has a gage chart which is creating issues as it needs unique id everytime and its data comes from the inner obejct that i get in response from the ...
0
votes
1answer
27 views
AngularJS give me rounded big number [duplicate]
I use my AngularJS application to display Twitter account, and big account ID give me a rounded number such as :
748598350317031424 give me 748598350317031400 when displayed on page with ng-repeat.
...
0
votes
2answers
54 views
ng-repeat shows terrible performance with large lists
I'm experiencing performance issues when using ng-repeat for long lists (thousands of records) that need to be shown within a table.
Here is the HTML I'm using:
<table class="table table-...
1
vote
3answers
50 views
ng-repeat for json object not working
This is my html and it would create profiles per reponse it gets from the $http.get service.
<div class="container" ng-controller="profileController" ng-init="loadProfilesData()">
<div ng-...
1
vote
1answer
29 views
Getting original $index of ng-repeat with toArray and groupBy
I have 2 ng-repeats with a toArray and grouptBy in order to show the array grouped in Sections, with each repeating type as the Section header:
<div ng-repeat="feed in feeds | groupBy:'type' | ...
0
votes
1answer
37 views
Update table content in angularjs
i'm having trouble to update the data of a table after a ng-click. After i select an item on a combobox (dropdown), it doesn't update the table content. Here is my combobox:
<!-- Combobox --> ...
0
votes
2answers
46 views
Pushing Object to array does not reflect at ng-repeat
I am updating an array by pushing the Json object returned by MVC controller to an array in Angular JS controller.
Following is the code sports-controller.js
portsApp.controller("SportsController", [...
0
votes
1answer
26 views
Unable to use ng-if with ng-repeat $index
I'm trying to use ng-if to display a button based on filters being present on screen. I'm using md-chips to show filters in categories.
HTML:
<div ng-repeat="filter in sc.filters track by $index"...
0
votes
1answer
32 views
ng-repeat not tracking old key-pair value
I've json like this..
var storedData = {
"Feb 7, 2017":[
{
"emMessageId":1019,
"message":"HI",
"userId":100166,
"imHashTagId":null,
"taggedUser":null,
"...
0
votes
0answers
28 views
Using ng-options for a select field inside an ng-repeat how do I filter out previously selected values?
I am creating a select dropdown that can dynamically be added by the user. Clicking a button will execute the following line: "$scope.expenses.push({});" adding a new select dropdown to the page for ...
0
votes
0answers
20 views
Angularjs ng repeat translude table
I use the module ng-tasty and I have created a global component in my project for my table but I can not complete it.
My view of my global template :
<div class="row">
<div class="{{$...
1
vote
1answer
43 views
angular repeat order by not work on nested scope
I have a html table where rows are a object and data is a property:
$scope.rows = [
{ row_id: 1,row_selected:false, data: { col_1: "a", col_2: "b", col_3: "c" } },
{ row_id: 2,row_selected:...
0
votes
3answers
38 views
How to detect input field value change in ng-repeat
I will have N number of input fields and every field will have a value CHANGE without getting in or out of focus. How can I detect value change of every input field.
I only found one question ...
1
vote
1answer
12 views
Ionic slide box with questionnaires, getting an error
I am trying to do ion-slide-box of questions for my app, but only for the intro when the user signs in.
I am trying to get questions in ng-repeat and on every ion-slide will have different questions ...
-1
votes
1answer
28 views
AngularJS cannot grab values with ng-model while using ng-repeat
I am trying to grab dynamically created information with ng-model (info created with ng-repeat). I am doing so in order to send the information in the form of an object to my flat database, Firebase. ...
0
votes
2answers
13 views
Angularjs way, conditionally to generate new form and append it to the page or state change
i am new to angularjs,
and wonder What is the angularjs way to complete such a task as conditionally generating or showing the form ?
Lets say
$scope.counter = function(){
if ($scope.years < ...
0
votes
1answer
33 views
AngularJs OrderBy after push into an array in ng-repeat
I'm trying to sort an array after pushing a new element to it and show changes on my ng-repeat. It isn't working as expected, it looks like my scope is disconnected from the view.
I have a people ...
0
votes
0answers
30 views
Include Different letter tempates under ng-repeat
I am wanting to see if there is a way to bring in letter templates that have different text content on them inside my ng-repeat which only brings in the template title from my server. I want to see if ...
2
votes
1answer
31 views
Is there a way to escape dot notation in AngularJS groupBy expression?
I am using this AngularJS filter: https://github.com/a8m/angular-filter#groupby
I have a piece of data (JSON) involving key names containing dots, which seems to be mistaken with nested properties.
...
1
vote
3answers
51 views
AngularJS ng-repeat update does not apply when object keys stay the same?
I'm trying to make a minimal but fancy AngularJS tutorial example, and I am running into an issue where after updating the entire tree for a model (inside the scope of an ng-change update), a template ...
0
votes
2answers
24 views
How can we concat angular js variable with ng-model
<div class="row" data-ng-repeat="i in [1,2,3,4]">
<div asterick class="form-group" ng-class="{'form-group has-success': !error['resource_type'] && (submitted), 'form-group ...
1
vote
1answer
37 views
Issue in AngularJS ng-repeat while accessing image
I'm writing a small program for "add to cart" page using AngularJS, the part of HTML code is as follows:
<div id="bookListWrapper" ng-controller="BookListCtrl">
<form role="form"&...
0
votes
1answer
46 views
Apply filter only when the input is greater than 3 characters
How can I get the results of a ng-repeat by applying a filter of an input only when it is greater than 3 (or N) characters?
I've tried the following (filter: input.lenght > 3):
<input type="text" ...
0
votes
1answer
30 views
Fetching data from db and array
I have an API that fetches data from database. My database contains such as this values
ID Name
1 Body
2 Skin
3 Fat
I have an API that correctly fetches this. I display it on the table ...
0
votes
1answer
51 views
Angular ng-repeat to access object with in an object
Framework: AngularJS 1.4.X
Problem: Accessing Object with in Object
In Built directive: ng-repeat
In Directive:
for ( i=0; i< something.lenght < i++)
if ( element in elements ){
...
1
vote
1answer
68 views
Four items in bootstrap carousel Ng repeat?
I am trying to display four items in a slide. But how do I repeat it the main row, because it uses an active class for the active slide. This is how my HTML looks.
<div class="carousel slide" id="...
0
votes
2answers
57 views
Looping with angularjs ng-repeat directive
Angularjs ng-repeat with div tag..i have a code with div tag as shown..i want to repeat the whole div with img src being different on the second loop..how to do this with ng-repeat directive in ...
1
vote
3answers
73 views
AngularJS view not refreshed after model change
I'm displaying some data on a table using Angular and I'm loading it asynchronously from json with $http. I have a date-picker and when the user selects a different date, the view has to display the ...
0
votes
1answer
36 views
Angular-vs-repeat - Unable to scroll to the end when col-md class is used
I am using angular-vs-repeat for virtual scrolling. I am not able to scroll and see the last data when col-md class is used. Plnkr link https://plnkr .co/edit/T6Xy3KhuRXBn4MZoLq5K?p=preview
0
votes
3answers
62 views
AngularJS ng-repeat not working with select options
I have assigned an array to an object named
processMapAttrib.auditNotifyUsers.unAssignedUsers
when I print the variable in HTML file using
<label>{{processMapAttrib.auditNotifyUsers....