[SOLVED] How to filter an array and get the values by recent month in Angular?

Issue I have an array: var array = [{ “date”: “2022-09-08T04:00:00.000Z”, “value”: “1.70”, }, { “date”: “2022-08-24T04:00:00.000Z”, “value”: “1.20”, }, { “date”: “2022-08-02T04:00:00.000Z”, “value”: “0.03”, }, { “date”: “2022-04-15T04:00:00.000Z”, “value”: “1.20”, }, { “date”: “2022-04-10T04:00:00.000Z”, “value”: “1.32”, }, { “date”:

Continue reading

[SOLVED] Angular reactive form not submitting selected option values

Issue I have the following form dinamically populated with multiple select inputs <form [formGroup]=”searchForm” (ngSubmit)=”onSubmit(searchForm.value)”> <div class=”col-md-2″ *ngFor=”let filter of this.filters; index as i”> <div class=”form-group”> <select formArrayName=”filters” size=”5″ class=”form-control” (change)=”onSelectChange($event)”> <option [ngValue]=”null” value=”-1″ disabled class=”first-option-item”>{{ filter.name }}</option> <option *ngFor=”let

Continue reading