All Questions
2,749 questions
0
votes
0
answers
73
views
how can i enable the next button if one or more checked boxes are selected and disable if none are selected in ServiceNow
i am working on a ServiceNow custom widget in which i am getting all the data from backed in an array. i want that if user doesn't checked any checked boxes the next button should be disabled. if user ...
0
votes
0
answers
95
views
Find duplicate value in array of objects [duplicate]
I have the following array:
let items = [
{"Item":"1","OfficeID":"82388","Title":"Bamboozled"},
{"Item&...
0
votes
2
answers
55
views
how can I update an array which has a different type and secondary array has different type in typescript
let user: { id: number, name: string }[] = [
{ "id": 0, "name": "ABC" },
{ "id": 1, "name": "XYZ" }
];
let dataList: { id: number, ...
0
votes
2
answers
156
views
Angular, Render 3000+ Reactive Forms without crassing
I'm facing an issue with a large array of products within an 'order' object in my frontend application. Typically, this array holds anywhere between 500 to 3000 products. Please don't ask why it's so ...
0
votes
4
answers
77
views
How to filter specific key values from array based on the other key
I am having an array with name of the product and its storage
let array = [{name: "samsung A", storage: "128GB"}, {name: "samsung B", storage: "128GB"}, {name: &...
2
votes
3
answers
231
views
How to filter based on the user entry from array of objects
I have an array of objects
let array = [{name: "singpore"}, {name: "French Polynesia"}, {name: "poland"}, {name: "portugal"}]
I am trying to implement with ...
1
vote
0
answers
23
views
Update the isolated scope of all instanced directives
My current situation right now is rather tricky and I've been bashing my head for two days straight trying to fix this problem.
I have accordion sections in which there is a space reserved to add/...
0
votes
1
answer
116
views
How to Show error if value of an array is empty
Array = {
0 : { NAME: 'A' , PET :'DOG' , AGE : 'NINE' },
1 : { NAME: 'B' , PET :'CAT' , AGE : 'TEN' },
2 : { NAME: 'C' , PET :'TURTLE' , AGE : '' }
}
Html :
<option ng-repeat='data in ...
0
votes
1
answer
44
views
How can I wait for a result, and then continue with the interval?
I have an application that all it does is consult an API and retrieve a list of objects.
Each object is simple, it has a title, a description, and another array containing IDs.
These IDs allow me to ...
1
vote
0
answers
41
views
How to upload multiple files with extension checking in yii2 using JavaScript
I am using AngularJS to upload an Array of formData to PHP
// sample code in ng-component.js
const fd = new FormData();
for (let i=0; i < $scope.brochureList.length; i++) {
console.log($scope....
0
votes
1
answer
108
views
How to check if object from response array exists in another array? (angularjs)
I have a custom multi-select, when I select some options from it I need to activate a second multi-select, based on the response I receive from the options of first multi-select.
So I have a method ...
1
vote
1
answer
127
views
console.log string inside array object with angularjs
I want to console.log or target the string of an object inside array with angularjs but it doesn't work. Please help me I'm still new on angularjs.
Here is what I'm trying to do.
<!DOCTYPE html>
...
0
votes
2
answers
844
views
How to push Angular model to array while changing values using index?
I have an Angular Model and I am trying to push it to an array to create repeater fields. The array is then iterated to create html fields in a component. However, while pushing to the array, an ...
0
votes
2
answers
45
views
JavsScript/AngularJS: How to replace/remove part of a property name
I have this piece of code that removes characters such as whitespace from property names:
let result = rows.map(el => {
let resultobj = {};
Object....
2
votes
1
answer
903
views
JavaScript/AngularJS: When reading excel row turns string with date, into date only value
I am using AngularJS to read and display the contents of an excel file.
When the excel file contains a row with a value such as:
"Finance Committee will need to meet prior to the board meeting on ...