Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago. Improve this question To do: select 0 hr only show 15, 30, 45 minutes select 1,2,3,4 hr show 0,15, 30, 45 minutes I
Tag: angular
date range logic computation (min current date)
Currently I have a mat date picker range. The logic is the min date on the calendar that the user can select is + 2 full days but exlude the counting of weekends for example If today is 25(July 25, 2022 ) then the current date([min]=”currentDate”) should be 28 which is thursday July 28, 2022. If today is 26(July 26,
Don’t show blank record on autocomplete in Angular
I have this autocomplete in Angular we use this filter function but issue is if i get those records also where Name is blank how should i remove that blank record from result. Answer You would need to add an additional check in the filter function, where you can check if Name property exist on object !!a.Name
How to replace array values with another arrays values in Angular8
I have two sample data named oldArray and newArray. I want to replace oldArray objects with newArray objects if makeLineName and makeProcessTypeId of both oldArray and newArray is same. For Ex – In oldArray, we have TestDemo1 and Test565 makeLineName available and same TestDemo1 and Test565 makeLineName available in newArray also, So i want to search newArray for this TestDemo1
How to replace list of words with tag at multiple indexes in Javascript
I have a response of parent string which I have to modify and replace with the provided start and end indexes. Expected Final Result: I tried below approach but was not successful Usage: please ignore my example names couldn’t think anything more Answer EDIT: My previous answer did not account to duplicate and did not use your indexes, so here
Typescript Array Push wiping string value
I am trying to build an angular app for a personal project and my first webform is exhibiting behavior I don’t understand. I have an interface as follows with a service to update an array of that interface. The array is instantiated in the service from existing json. My component uses a checkItemForm to hold the data, then onSubmit() updates
How can I use navigator.getMedia in Angular
I have a problem when implementing navigator.getMedia in angular. Which would be the correct way?. the error is “Property ‘getMedia’ does not exist on type ‘Navigator'” Answer Correct syntax would be navigator.MediaDevices.getUserMedia The MediaDevices.getUserMedia() method prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media. That stream can
Unable to update the key value of json objects in an array with another list of array values in angular
While i’m trying to update the key values of an array of json objects using the values from another array: While looping, age is getting updated with each value as in array, but on pushing into the array, the value of key(age) of json objects are getting updated with the last element of the array. How can I make this
Store large amount of data in Javascript
Im receiving some file chunks in bytes format from my server and im collecting them into one variable in my frontend to download it later. And I can’t change my server conception (receiving a file sliced into chunks). My problem is that if the file is heavy (from 500MB), my variable length is starting to be very very big and
how to implement angular table with reactive form
based on my html below , as you can see I have a table and then looped through mat cell using *matCellDef=”let model” , inside the cell there are input fields which are reactive forms (it has mat error checking ,formcontrolname etc). Each cell or row should have its own reactive form since each row has its own mat form