9,058 questions
1
vote
1
answer
55
views
Custom widget for visualizing dynamic table data
While creating a custom widget for visualizing dynamic table data, I encountered some issues and would like to share a minimal working example to illustrate the problem.
JS:
self.ctx.$scope.showAlert =...
1
vote
0
answers
64
views
How can I fix the slot ng-repeat so it will display the areas for the selected block?
I am trying to display the areas for the selected block, the wizardStep is the parent controller and the optionSelector is the child controller. I am sending the selected name and value of the ...
0
votes
0
answers
69
views
ng-repeat disable other repeated HTML Attribute
I am using "ng-repeat" to display 3 elements => Radio buttons- Yes/No, "Save" & "Cancel" buttons.
Objective of this question is to Enable only 1 HTML Attribute at ...
1
vote
1
answer
69
views
Hide a div generated dynamically via SCSS
I am working on hiding certain elements of an Angular page. I cannot change the source code, however I am able to upload an SCSS stylesheet which is applied to the page. The page I am working on has 2 ...
0
votes
1
answer
32
views
Set background color of table column with AngularJS
I would like to set the background color of a table column with AngularJS.
I found an example without AngularJS:
$('td').hover(function() {
var t = parseInt($(this).index()) + 1;
$('td:nth-...
0
votes
0
answers
38
views
Why is ng-repeat not processed
I have been following some user guides / introduction videos, and am struggling to merge a couple of very basic concepts. I have trying to populate a SELECT using the ng-options but it seems its ...
1
vote
1
answer
66
views
In AngularJS, ng-repeat breaks the options into options again
My red JS array is ["standard", "premium"]
When I click on the dropdown option for the first time, it’s showing option as standard and premium. After choosing any one of them, the ...
1
vote
1
answer
65
views
AngularJS (1.5.0) nested ng-repeat with radio button not initializing checked properly
I use a dynamic name attribute technique.
I'm using AngularJS verison 1.5.0.
When I run this AngularJS example (code below), which has nested ng-repeats (so I use $index and $parent.$index), I expect ...
0
votes
2
answers
66
views
Javascript do-while loop condition causing error
I am running an older version of Ionic v1 which is no longer supported. It appears I have discovered a bug that is not covered anywhere. The only two mentions of it are 1) related to collection-...
0
votes
0
answers
50
views
ng-repeat going into infinite loop on array of objects
I have an HTML block that is accessing values using ng-repeat in an object array 'items' of type:
[{
method: 0,
text: 'text1'
},
{
method: 1,
text: 'text2'
},
{
method: 3,
text:...
0
votes
1
answer
42
views
How to have multiple rows in a ng-repeat
I have an AngularJS app.
I have a page where I am displaying a table of information for the user to edit.
However, there are too many columns going across the page. I would like to move 1 or more ...
1
vote
0
answers
101
views
How I suppose to break 10 k records in ng-repeat in HTML table?
I want to show records of 10k in an HTML table using ng-repeat, but when ng-repeat runs, it crashes the browser every time. I need solutions so I can fix it.
I am looking for a solution so I can fix ...
0
votes
1
answer
61
views
different image url each profile (ng-repeat)(ng-src)
I want a different image url each person profile everytime they’re profile details appeared.
But what happen is it’s only targeted the last url on $scope.imgSrc so they have all same pics which is I ...
0
votes
1
answer
61
views
AngularJS : table rowspan dynamic
I would like to know how can I display a table with ng-repeat from AngularJS like this:
4 columns after a row with a colspan of 4 and so on.
My code angular return database from data html
<table&...
-1
votes
1
answer
26
views
how to filter table data using angularJS filter from a selection value
I have a table with a column of Status, and I want to filter the table base on their status and I have put on the selection element to do so. here is my code below for the selection
<select class=&...
3
votes
1
answer
135
views
why is ng-repeat not working in custom directive?
I am new to AngularJS and I cannot get ng-repeat to work when embedded in a directive as follows
<settings-widget>
<ul class="ul-border">
<li class="box" ng-...
0
votes
2
answers
248
views
ng-if or ng-repeat in angularjs remove web-components from DOM
I have 14.2 angular and I need to reuse components from angular in the legacy project in angular js (1.8.3) using web components.
I have two examples:
https://stackblitz.com/edit/angularjs-with-...
1
vote
0
answers
81
views
ng-isolate-scope in each child directive along with ng-repeat in AngularJS
The HTML template contains the nested directives. The child directive will create the element or fields based on the data injected to it. So field can be type of dropdown, input field etc. I suspect ...
0
votes
1
answer
98
views
show more in AngularJS dropdown
I have a select Dropdown created using AngularJS. We have set a limit to show the top 5 items and the remaining 5 items should be visible to the user . when he clicks the 5th item with the name "...
2
votes
0
answers
283
views
Rendering AngularJS code inside React component
Is it possible to render AngularJS component inside React component which is rendered from an AngularJS component.
I have a specific scenario where:
<angularjs-component-1>
<react-...
0
votes
1
answer
407
views
angularjs ng-repeat radio buttons
This code makes 2 sets of 3 radio buttons. One set of individual radio buttons and one set of radio buttons constructed with an ng-repeat. Both sets of radio buttons can be selected with the buttons A-...
0
votes
1
answer
80
views
Create multiple divs using ng-repeat
I want to create 'n' red blocks with text (n here means the number of elements in array). But, I am getting a blank page.
<html>
<body>
<script src="https://ajax.googleapis....
0
votes
1
answer
43
views
Filter and show results from other pages
I have a HTML page with a textbox and table to display data
<input id="search-term" type="search" placeholder="Search..." ng-model="vm.term.search" ...
0
votes
1
answer
57
views
ng-if not working with ng-repeat and radio button
I have the following html template:
<div ng-app ng-controller="Ctrl">
<div class="cont">
<table>
<tr><th ng-repeat="column ...
0
votes
1
answer
71
views
Hide control within a table with filter applied
HTML (in my AngularJS page):
<input id="search-term" type="search" placeholder="Search..." ng-model="vm.term.search" autocomplete="off" no-dirty-...
0
votes
1
answer
80
views
Get the length of items in ng-repeat outside the loop in Angular JS
I have the following HTML where i am listing few items with Angular JS ng-repeat
<div class="header-container">
<div class="header-list" data-ng-repeat="details ...
0
votes
1
answer
760
views
How to pass option value and label created with ng-repeat triggered by ng-change
I am creating options with an ng-repeat and on ng-change I would like to call a controller function and pass the option value and label. I have tried to also create the options using ng-options but ...
1
vote
1
answer
170
views
ng-repeat nested array of object in same row
I am trying to bind the data in the same row in a nested array.
My Array of Objects
$scope.Record = [
{ Name:'Adam',
Months:[
{Month: 'Jan', Value: 10, cust:2},
{Month: 'Feb', Value: 30, cust:2}
{...
0
votes
2
answers
125
views
AngularJS doesn't display json object in html after $http.get request
I'm trying to make a get request and display the json data.
Here is the html div tag where the data should be displayed:
<div ng-app="app" ng-controller="searchController">
...
0
votes
0
answers
142
views
select all toggle buttons in Angularjs
I am trying to select all toggle buttons exactly like checkboxes select all.
I am using bootstrap4-toggle library
This is my ArrayList
$scope.checkboxes = [
{name:'check[]', value:"1", ...
1
vote
1
answer
187
views
Disable button with checkbox in nested ng-repeat angularjs
I wanna disable the button with the checkbox in nested angularjs ng-repeat. I mean to Disable button in the current array of ng-repeat. My code looks like the below example,
angular.module('test', ...
0
votes
0
answers
36
views
ng-repeat do not work on arrays of length > 23 [duplicate]
Hello StackOverflow people !
TLDR; Fixed, my array was containing duped elements. On my way to clean this array !
Thanks
@Igor for the light !
I'm currently working on a relic of the past : Angular JS ...
1
vote
0
answers
132
views
AngularJS ng-repeat-start ng-repeat-end with table and dynamic rowspan for two rows
I would like to get the data to be displayed as in below table. Can someone please provide me how to write in html using angular js object data. May be using ng-repeat-start but I couldnt understand ...
0
votes
0
answers
70
views
Row span is not working as I expected, what I need to change here
I am trying to print key in center of values.so that I tried to use rowspan but it's repeating n times.
here is my code
<table >
<tbody ng-repeat="(key,value) in ...
0
votes
0
answers
42
views
Access nested json with ng-repeat to build a table
I'd like to build a table that looks like that :
I tried something in my dataset, but as datas are nested, I don't have any idea how I can display them with ng-repeat in my html.
wslists can is ...
0
votes
0
answers
104
views
How to access nested json with ng-repeat to build a table
I'd like to build a table that looks like that : table
I tried something in my dataset, but as datas are nested, I don't have any idea how I can display them with ng-repeat in my html.
Also resultsJ1,...
0
votes
2
answers
708
views
List of data with buttons that should display the rest of the data below
I'm trying to create a list of data, with a corresponding button in each row of the list. I am hoping to make it so that when a user clicks the button, it shows the data below, (using ng-show) just ...
0
votes
0
answers
81
views
Display issue : put different lists in different columns of a table with ng-repeat
UP
I have 2 different lists of elements in my JS that I would like to display in a table, each list in a column with ng-repeat. The problem is that my elements from the second list appear in both ...
0
votes
1
answer
688
views
how to disable radio button dynamically in angularjs using ng-repeat
I have developing some code in Angular JS and i need to disable radio button based on previous selection or change in text box
in JS controller:
PPCO.cusGender = [ {
id : '1',
key : 'Male',
value : '...
1
vote
1
answer
140
views
How can izitoast ng-repeat in agularjs
<tr ng-repeat="item in self.quantitativeEvaluationQuestions">
<th>{{ item.key }}</th>
<td ng-bind="self.completeInfo[item.value] | ...
0
votes
0
answers
53
views
ng repeat nested loop
I am facing an issue while displaying the nested data inside the ng-repeat. I get data for the first 4 fields but those which are more nested like the label and onwards field data do not show up. the ...
0
votes
1
answer
55
views
How to show only the new element
I am try to modification in this repo (https://github.com/particle-clicker/particle-clicker/) related to this http://particle-clicker.web.cern.ch/
I have add a new item in the statistics that should ...
0
votes
1
answer
567
views
Angular display table data from object array but updating last column from another API call returns undefined value
I am trying to display a table by looping an array of objects fetched from backend API.
<tr *ngFor="let obj of objarray">
<td>{{obj.property1}}</td>
&...
2
votes
0
answers
81
views
How to call function after all multiple nested ng-repeats have finished?
I have been reading many threads on using a directive or $last to call a function at the end of an ng-repeat, even two level nested ng-repeats, but nothing regarding the level of nested ng-repeats I ...
0
votes
2
answers
84
views
Angular (1.x) - Programmatically access NG-REPEAT from code
I'm trying to setup hotkeys for an old project that still uses angular 1.x and one of the features I was trying to add would be to select the first row from a table that is created with an NG-REPEAT. ...
1
vote
1
answer
4k
views
AngularJS - set default multi select drop down value from controller
I am using AngularJS multi select drop down code from the following source:
MultiSelectDropDown
I am using the same drop down twice in the same html page. I want to display the default selected drop ...
0
votes
1
answer
42
views
Keep getting an error when using ng-repeat
I'm displaying results by using NG-repeat. There is an API call via $http.post that receives an array with information.
In the results there is a 'Thumbnail' item.
part of the result is:
"...
0
votes
1
answer
372
views
angularjs NgTable ng-repeat groupby with show/hide
I can't get the 'groupBy' working.
I have a data set returned from a $http factory. The data is passed to the $scope 'territoryReq' variable.
the data set looks like:
[{"Country":"...
0
votes
1
answer
2k
views
How to show and hide a table column after checking a condition in every row in ng repeat loop angular js?
I have a problem with show/hide column in a table with ng-repeat after checking a condition. Here is my code.
<div class="row">
<div class="col-md-12 col-no-pad-mob"&...
0
votes
2
answers
100
views
Bring together arrays for ng-repeat
i have mutiple arrays and want to display them in a table with ng-repeat. How can i merge arrays like a
name=[name1,name2] und type=[type1,type2] to a data=[..] so i can ng-repeat data.name and data....