9,058 questions
1
vote
1
answer
53
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 =...
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 ...
0
votes
1
answer
31
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-...
1
vote
1
answer
62
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 ...
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
1
answer
36
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 ...
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 ...
-1
votes
1
answer
24
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=&...
0
votes
2
answers
238
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-...
0
votes
1
answer
93
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 "...
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
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
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
758
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 ...
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">
...
1
vote
1
answer
186
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', ...
1
vote
0
answers
128
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
38
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
2
answers
703
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
1
answer
684
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 : '...
0
votes
0
answers
49
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
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>
&...
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. ...
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
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"&...