Tagged Questions
0
votes
1answer
12 views
How to display grouped by multiple data in a specific places in a table
I have retrieved data that I grouped by multiple within a ng-repeat directive using AngularJS filter and want to display the grouped data in a specific cell of the table.
Here is my HTML code:
<...
0
votes
1answer
44 views
Angular - Iterate array inside ng-repeat and fetch values from another array
I have two array objects(array A and array B) and I am building single angular table based on this.
First I need to iterate over array A and populate few columns and the other columns are based on ...
0
votes
3answers
28 views
Angularjs form fields in nested ng-repeat
Hi I have nested form field like this
<table>
<tbody ng-repeat="student in students">
<tr>
<td colspan="3">{{student.sname}}</td>
</tr>
<tr>...
1
vote
1answer
29 views
angularjs scope array not shown when data is in
I have scope array property. I'm filling in the data by calling ajax service. What is happening is that even the data is populated in the array as expected I need to focus some other control or click ...
0
votes
3answers
23 views
Angular: Assign $scope value from ng-init to new variable
As per mentioned, Is it possible to assign $scope variable from ng-init to new variable?
see this plunkr
If you see on my plunker, variable $scope.adulttotTicket have value of total ticket which is ...
0
votes
1answer
31 views
edGet the value of element inside ng-repeat dynamically
I am generating 10 elements using ng-repeat.
Please help me to get the value of each span tag dynamically so that I can write conditions accordingly.
Below is my html code.
I tried
$('...
0
votes
1answer
21 views
ANGULARJS results disappear when 3 are listed
My query search all the dishes that the restaurant has on it's database.
<?php
include('base.php');
$data = array();
$result = mysql_query("SELECT nombre FROM platos WHERE tipo = 'principal'",$...
0
votes
1answer
22 views
angularjs filter multidimensional object json
I wnt to use ng-repeat to display a list filtered by an object value. Here is a plukr of my attempt https://plnkr.co/edit/vD4UfzM4Qg7c0WGTeY18?p=preview
The following returns all of my JSON names as ...
2
votes
0answers
45 views
Angular ng-repeat error display
I have the following code inside a form tag, I would like to have some error text appear underneath the checkboxes however at the moment I am unable to get it to work with the current setup I have ...
0
votes
1answer
40 views
AngularJS : save a clicked action of the selected row in ng-repeat
Summary :
I have an array of objects that i am displaying into the ng-repeat list. Each object having three properties id,name & age. name field is clickable.
Requirement :
Once user clicked on ...
0
votes
3answers
34 views
Angular ng-repeat - unique $index across multiple loops
Im using ng-repeat to loops through an array of objects for which I would like to print numbered headings.
For example:
Controller
var cars = [
{make:'ford',model:'mustang'},
{make:'ford',...
2
votes
3answers
53 views
NgRepeat is not updating from an updated array
I have an app that gets a collection of data (i.e. 400 objects) and stores it in an array. In my view I'm creating a kind of infinite scroll, that basically when the page loads, it insert 5 records. ...
0
votes
1answer
9 views
How to pre-select radio radio button with Angular JS which is bound to model within ng-repeat
I have the following HTML:
<div ng-controller="CreateSpreadsheetCtrl as csCtrl" ng-init="csCtrl.init()">
<div ng-repeat="x in csCtrl.ProcessingTypeMasters">
<input type="...
0
votes
1answer
18 views
AngularJS + Plotly - don't want to find my #div
I'm new to AngularJS. I need to connect angular script to plotly. The idea is to get JSON data for X and Y for Plotly. Everything is fine till plotly line. It doesn't find my divs chart0, chart1, ...
2
votes
2answers
61 views
Angular: got undefined value when assign new variable with $rootScope variable
As mentioned on title, I have small issue to assign new variable with $rootScope variable.
I have variable $rootScope.adulttotTicket with value 2. the value is int. So what I want is just to assign ...
0
votes
1answer
26 views
Trigger value change in json from ng repeat
I have Following Json:
{
"FunctionIs": [{
"id": 1,
"name": "Test",
"Type": "A"
}, {
"id": 2,
"name": "Test2",
"Type": "A"
},{
"id": ...
0
votes
1answer
36 views
Count number from value ng-repeat
Is it possible to add a numbers output from ng-repeat ? I have this output from ng-repeat
1
2
1
I want to add that number so it will become 4. this is the code
<p data-ng-repeat="ticketA in cart....
0
votes
2answers
41 views
Angular JS ng-repeat not working as expected
I have a controller like this:
controller('BreadCrumbs', ['$scope','crumble','$rootScope', function ($scope,crumble,$rootScope) {
function init (){
$scope.ui={};
$scope.ui....
0
votes
1answer
20 views
AngularJS ng-repeat - Cannot Get Module or Controller
Fairly new to AngularJS so I might have tried to run through this far too quickly.
I'm trying to display an img, a date and a string repeat into a div with AngularJS but no matter what I do I keep ...
0
votes
2answers
40 views
Conditional groupBy in ng-repeat
How can one apply conditional grouping in an Angular ng-repeat directive?
For example, in the below code, I want to groupBy:'var1', but only when some variable, or expression, dontGroup evaluates to ...
1
vote
2answers
37 views
dynamic ng-model using multiple dropdown and ng-reapeat
Hello every one i have a language multiple selection input. On select language i need to open textboxes of selected language with dynamic ng-model.
this is my json and code.
[{"id":"1","lang":"...
0
votes
0answers
24 views
Long array list rendering makes page scrolling slow in Angular.js
When trying to render more than 120 items from an array (with images) the scrolling of the list becomes slower. Basically, when I am loading new data in infinite scroll, I am concatenating old array ...
0
votes
2answers
32 views
Problems with fetching data from nested ng-repeat
I'm having a simple HTML page as in snippet,
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js">&...
0
votes
0answers
24 views
angular 1.6: ng-blur and ng-focus does not work on elements in ng-repeat
So I am working using angular 1.6 on an application. Using ng-click and ng-focus has worked fine in the past on different elements. However, I found I am having trouble getting it to work within ng-...
0
votes
1answer
16 views
AngularJS - Insert ng-repeat into another one between two TR
My question is - I think - pretty simple.
I have a table, a classic one. In this table, I want to display values of two arrays named networks and channels.
Each network in networks could contain ...
2
votes
1answer
51 views
Update element created by directive on change of controller varibale
I am trying to create an angular app where user can create a dynamic form. In this user can create form fields and save form metadata, which is then used to display actual form. There is live preview, ...
0
votes
0answers
27 views
how to use ng-if for nested array of objects
doc.html
<tr data-ng-repeat="childCondition in model.rule_key[$index]">
<th> {{ childCondition.KEY_NAME }} </th>
<td>
<input type="text" class="form-control" ng-...
0
votes
2answers
41 views
How can I iterate over multiple maps (key,value) using ng-repeat in AngularJS
In my controller, I have data like this:
"type": [
{
"aMap": {"5.0": 0},
"bMap": {"10.0": 0},
"cMap": {"15.0": 0},
"dMap": {"20.0": 0},
"...
0
votes
1answer
49 views
How to Save ng-repeat $index to DB ( rownumber: 1.1 ,1.2,1.3) using angularjs
I am working on index page of book functionality
i.e : 1.1
1.1.1
1.2
1.2.1
where 1.1 & 1.2 is parent ng-repeat &
1.1.1 & 1.1.2 is child ng-reapet
now i want to ...
0
votes
0answers
28 views
angular.js limitTo and groupBy in ng-repeat not working
Hi have a custom filter in ng repeat, which just wont work. Am i doing something worong, or is there some usage limitations of ng-repeat filters which am missing?
Here is the code:
<div ng-repeat=...
1
vote
3answers
52 views
AngularJs ng-repeat custom structure
I have a dataset like this
$scope.dataset= [
{"Name":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"},
{"Name":"Ana Trujillo","City":"México D.F.","Country":"Mexico"},
{"Name"...
1
vote
2answers
32 views
How to set column value by subtracting values from ng-repeat value
Below is snippset,
I want to set the value of balance column based on the entered Amt in Entered Amt column.
I tried this but in my scenarion, same vallue is setting for all balance column though i ...
0
votes
2answers
31 views
Merge and display multiple rows in a single row using ng-repeat
I need to merge and display in a single row for particular data which has same id. I'm using ng-repeat for displaying data.
Sample JSON:
$scope.sampleTest = [{"city": "Chennai", "name":"Sample"},
...
0
votes
0answers
17 views
Orderby Date Time collection not working
Im pulling a collection of records where i wich to filter by DateTime, but for some reason the records is not working will, i think is because angularjs doesnt filter by the time, or im not doing ...
0
votes
1answer
26 views
Angular array not splicing correctly (pure JS)
Can someone tell me what I'm doing wrong? I have JSON data that I'm converting to an array for an ng-repeat. Before I iterate through the array, I am comparing the event dates to today's date and ...
0
votes
0answers
31 views
Not able to get data-bound data during the directive initialization when its wrapped in a ng-repeat
I've been creating a modularized start page (In Angular).
I've created a module-directive that can handle simple data and displaying them as a list.
Originally, my plan was to create new directives ...
0
votes
0answers
17 views
How to load so many iframes in angular.js
I have a blog page developed in angular.js and node.js, each blog have some youtube or soundcloud embed which i need to add on blog listing. I used a web service to get around 10 blogs at a time, but ...
0
votes
1answer
13 views
How to repeat the Table Header Details for every 2 records
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="...
0
votes
1answer
67 views
CSS: Tooltip shown with distanse from parent on list scroll
I have a table inside li tag, and I want to show description on :hover inside td. For some reason when scrolling the list, the description content start to appear with distance from its parent.
I ...
0
votes
3answers
67 views
checking the condition in ng-repeat
I am creating app in ionic /angularjs.
The controller fetches the data in JSON format from the URL and displays unique images in div elements. I want to allow these images to be clicked and then ...
0
votes
1answer
33 views
Catch duplicates and ignore them inside ng-repeat's track by without a filter (AngularJS)
I'm having some issues using ng-repeat with track by because sometimes duplicate data comes in (same user) because the user was pushed down in the date ordered list (API side) after a newer entry has ...
0
votes
0answers
33 views
Directive for dynamically adding JavaScript files
Is it possible to use ng-repeat to dynamically add script files to my html file?
I have a directive like below:
angular.module("app").directive("scriptLoader", function($compile) {
return {
...
1
vote
2answers
36 views
Can i append a div which includes ng-repeat
i am trying to append a div to another div. But this div which i will append has a ng-repeat (AngularJS).
my html code looks like this:
<div id="content"></div>
and this is my jquery/...
1
vote
2answers
34 views
Filter angular js data source inside parent and child nodes
I have created a tree view in angular js using ng-repeat. I have also added a filter to filter my data source. I am able to filter the parent nodes and the resource nodes as what I expected, but my ...
0
votes
0answers
78 views
$compile directive not hiding elements in ng-repeat
After upgrading from Angular 1.3.2 to 1.5.11 it appears my custom restrict directive is no longer working as expected. The directive is responsible for hiding elements through comparing a user's roles ...
-1
votes
0answers
31 views
How to inline edit table in angular material?
I need to inline edit a table i.e., to edit a table row in between. I have a table populated with data and each row has an button named Edit at the end. When I click on this button a dialog box opens ...
0
votes
2answers
55 views
Angular Nested array filtering whole object
I have the following code on the controller.js and gallery.html
.controller ('VideoGalleryController', ['$scope', 'videogalleryFactory', function($scope, videogalleryFactory){
//...
0
votes
1answer
32 views
Using function with ng-repeat causing infinite digest loop
I have the following piece of code.
https://plnkr.co/edit/Tt7sWW06GG08tdJu72Fg?p=preview. Please expand the window fully to see the whole view.
I have categories and sub-categories to display in a ...
1
vote
2answers
61 views
Angularjs - How to show by default first tab of accordion in ng-repeat
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.records = [
{
"Name" : "Alfreds Futterkiste",
"Country" : "Germany"
},
{
...
0
votes
1answer
30 views
Angularjs - How to generate tables column dynamically onclick of ng-repeat element
I'm getting such type of response from backend.
[
{
"id": "1",
"name": "Roshan",
"av": "1000",
"compname": [
{
"id": "43",
"cname": "TCS",
"...